[XML-SIG] Xupdate remove problem
Colin Gillespie
C.Gillespie at newcastle.ac.uk
Tue Nov 2 16:42:18 CET 2004
Dear All,
Sorry, I'm being a bit stupid. The reason the script didn't work was because //sbml:species[0] should be //sbml:species[1]
Thanks
Colin
-----Original Message-----
From: xml-sig-bounces at python.org on behalf of Colin Gillespie
Sent: Tue 11/2/2004 1:13 PM
To: xml-sig at python.org
Subject: [XML-SIG] Xupdate remove problem
Dear All,
I have a debian testing system and after my latest update, my Xupdate stuff doesn't work.
Can anyone see what if wrong with these scripts? I'm trying to remove the first species.
Thanks
Colin
#xup.xml
<?xml version="1.0"?>
<xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate" xmlns:sbml="http://www.sbml.org/sbml/level2">
<xu:remove select="//sbml:species[0]"/>
</xu:modifications>
#src.xml
<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level2" level="2" version="1">
<model>
<listOfSpecies>
<species id="Y1"/>
<species id="Y2"/>
</listOfSpecies>
</model>
</sbml>
> 4xupdate src.xml xup.xml
Nothing changes
_______________________________________________
XML-SIG maillist - XML-SIG at python.org
http://mail.python.org/mailman/listinfo/xml-sig
More information about the XML-SIG
mailing list