Question regarding C14N namespace

J

jacksuyu

I am a little confused about "Elimination of superfluous namespace
declarations" in the w3c C14 document.

Couple sample situations:
1.
<P:parentNode xmlns:p="parent" xmlns:C="child">
<C:TheNode>
</C:TheNode>
</P:parentNode>

If I perform C14N process on C:TheNode, will it be
<C:TheNode xmlns:C="child">
</C:TheNode>
Or just
<C:TheNode>
</C:TheNode>

2. Useless namespace
<C:TheNode xmlns:C="child" xmlns:junk="junkURI">
</C:TheNode>

After C14N process, should it be
<C:TheNode xmlns:C="child">
</C:TheNode>
or
<C:TheNode xmlns:C="child" xmlns:junk="junkURI">
</C:TheNode>


Thanks.

-- Jack
 
J

jacksuyu

One more question regarding C14N, shouldn't the line breaks in elements
be changed to #xA #xD ?

Such as
<C:TheNode xmlns:C="child" xmlns:junk="junkURI">
</C:TheNode>

should be CN14 to
<C:TheNode xmlns:C="child" xmlns:junk="junkURI"> #xA </C:TheNode>

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top