[xml] xmllint c14n and namespaces / document subsets
- From: "Sebastian Menge" <s menge gmx de>
- To: xml gnome org
- Subject: [xml] xmllint c14n and namespaces / document subsets
- Date: Fri, 09 Mar 2012 14:47:25 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]