Hi I am unsure if xmllint --c14n works correctly regarding namespaces. For the following input my hand-made legacy implementation of W3C Canonicalization pulls down the namespace decl xmlns:xsi to the <Dcoument>-Tag.
------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <conxml xmlns="urn:conxml:xsd:container.nnn.002" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:conxml:xsd:container.nnn.002 container.nnn.002.xsd"> <MsgPain001> <Document xmlns="urn:swift:xsd:$pain.001.002.02"> <pain.001.001.02> </pain.001.001.02> </Document> </MsgPain001> </conxml> ------------------------------------------- Expected result: ------------------------------------------- ... <Document xmlns="urn:swift:xsd:$pain.001.002.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > ... ------------------------------------------- But xmllint --c14n does not do this. Can someone explain who is right according to the spec and why? http://www.w3.org/TR/2001/REC-xml-c14n-20010315#Example-DocSubsets Thanks and Regards, Sebastian. -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml