GNOME Bugzilla – Bug 124245
xmlsec ignores PI or comment nodes on the root element level
Last modified: 2004-12-22 21:47:04 UTC
If the documents has PI or comment node on the root element node level: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="myfile.xsl" ?> <sales> ... </sales> then these nodes would be ignored. The bug was first reported by Sanjay Chugh: http://www.aleksey.com/pipermail/xmlsec/2003/001603.html
Created attachment 20607 [details] the template file that demonstrates the problem ("xmlsec1 sign --privkey rsakey.pem --store-references a.tmpl)"
Created attachment 20610 [details] [review] fix
Fixed in the trunk: Checking in ChangeLog; /cvs/gnome/xmlsec/ChangeLog,v <-- ChangeLog new revision: 1.163; previous revision: 1.162 done Checking in src/nodeset.c; /cvs/gnome/xmlsec/src/nodeset.c,v <-- nodeset.c new revision: 1.20; previous revision: 1.19 done Checking in src/transforms.c; /cvs/gnome/xmlsec/src/transforms.c,v <-- transforms.c new revision: 1.87; previous revision: 1.86 done