test dyn load prov-n
authorLuc Moreau <l.moreau@ecs.soton.ac.uk>
Fri, 11 May 2012 12:59:03 +0100
changeset 2770 07cbb929855d
parent 2769 6beb29f9e830
child 2771 d82710d62f86
test dyn load prov-n
model/prov-n.html
--- a/model/prov-n.html	Fri May 11 12:58:14 2012 +0100
+++ b/model/prov-n.html	Fri May 11 12:59:03 2012 +0100
@@ -20,7 +20,7 @@
 function insertProductionDefinition(doc, content, name) {
 
 	var xml=$.parseXML(content);
-	var segment = $(xml).find('a[name~="' + name + '"]')[0];
+	var segment = $(xml).find('a[name~="' + name + '"]/../..')[0];
 
 	return doc._esc((new XMLSerializer()).serializeToString(segment));
 }