Re: [xml] Error in LIBXML exc-c14n
- From: Aleksey Sanin <aleksey aleksey com>
- To: gopabandhu patra <mythakur yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] Error in LIBXML exc-c14n
- Date: Fri, 03 Jun 2005 10:59:22 -0700
This example in Exc C14N spec (http://www.w3.org/TR/xml-exc-c14n/) is
about C14N, not Exc C14N:
2.2 General Problems with re-Enveloping
As a more complete example of the changes in canonical form that can
occur when the enveloping context of a document subset is changed,
consider the following document:
...
Applying Canonical XML to the node-set produced from the first document
yields the following serialization (except for line wrapping to fit in
this document):
...
Aleksey
gopabandhu patra wrote:
Hello Sir,
I was testing Exclusive canonicalization by following xml file which is
given in exclusive canonicalization specification. The input is below
<n2:pdu xmlns:n1="http://example.com"
xmlns:n2="http://foo.example"
xml:lang="fr"
xml:space="retain">
<n1:elem2 xmlns:n1="http://example.net"
xml:lang="en">
<n3:stuff xmlns:n3="ftp://example.org"/>
</n1:elem2>
</n2:pdu>
The output is below
<n1:elem2 xmlns:n1="http://example.net"
xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en"><n3:stuff
xmlns:n3="ftp://example.org"></n3:stuff></n1:elem2>
But the Actual Output should be
<n1:elem2 xmlns:n1="http://example.net"
xml:lang="en">
<n3:stuff xmlns:n3="ftp://example.org"></n3:stuff>
</n1:elem2>
I couldn't get the problem Can you help mewhy is it coming wrongly.
Regards
Gopa
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------------------------------------------------
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]