Re: [xml] c14n - attributes



Aleksey, Thanks for looking at this, - we will have to take the
manual path you suggest. I was the one who suggested to some programmers here
using c14n solely to get the attributes added because I thought that's what
would happen based on the specs. So we will add the attributes, but
not call c14n.

Thanks a lot,

Rick

Aleksey Sanin wrote:
I looked at it and there is no easy way to fix this:
1) Default attributes for c14n are inserted into the
tree by xml parser. c14n code itself does not do
anything  about this.
2) As Daniel wrote, schemas support code in libxml2
is separate from the main xml parser. There is no easy
way to get access to schema data from xml parser
(at least, for my limited knowledge of this code).

I can suggest a workaround though... You can parse
xml file, then *manually* add default attributes from
the schema and then call C14N. Not the best option
but it should work

Aleksey


Aleksey Sanin wrote:
Yes, it is correct behavior. I'll take a look but I don;t
know much about schemas code so no promises

Aleksey





--
******************************
Enrico Silterra
Meta Data Engineer
107-E Olin Library
Cornell University
Ithaca NY 14853

Voice: 607-255-6851
Fax:     607-255-6110
E-mail: es287 cornell edu
http://www.library.cornell.edu/cts/
"We must walk consciously only part way toward our goal, and then leap in the dark to our success."  - - 
Thoreau
******************************




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]