[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
We're a bit confused about namespacing. Suppose we have this:
<ns1:a xmlns:ns1="http://something.org/ns/1"xmlns:ns2="http://something.org/ns/2">
<ns2:b>
<c>something</c>
</ns2:b>
</ns1:a>
To what namespace does "c" belong to? I would say: a default one, if there is any. But what if there isn't one? In the latter case, here's our guess: there's no prefix, so it doesn't belong to any namespace. Right?
[xsl] namespace defaults
Subject: [xsl] namespace defaults From: "Marc Lambrichs marc.lambrichs@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 28 Oct 2014 10:14:58 -0000 |
We're a bit confused about namespacing. Suppose we have this:
<ns1:a xmlns:ns1="http://something.org/ns/1"xmlns:ns2="http://something.org/ns/2">
<ns2:b>
<c>something</c>
</ns2:b>
</ns1:a>
To what namespace does "c" belong to? I would say: a default one, if there is any. But what if there isn't one? In the latter case, here's our guess: there's no prefix, so it doesn't belong to any namespace. Right?
We've taking into account http://www.w3.org/TR/xml-names/#scoping-defaulting and http://www.w3.org/TR/xml-names/#concepts
Cheers, Marc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Compacting with xmllint, Ihe Onwuka ihe.onwuk | Thread | Re: [xsl] namespace defaults, Martin Honnen martin |
Re: [xsl] special character encodin, Michael Sokolov msok | Date | Re: [xsl] namespace defaults, Martin Honnen martin |
Month |