OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xri message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [xri] Pointer to "how to implement c14n"


Will Norris wrote on 2009-05-28:
> There's still a bit to do (comment nodes, entities, encoding special
> characters, etc), but I was able to implement basic exc-c14n in about
> 2 hours in 90 lines of PHP.  Now, it turns out that PHP does a lot of
> the work for you with respect to adding namespace declarations onto
> the right elements... you don't actually need to keep track of the
> stack (unless I'm mistaken).

I suspect you're over-simplifying, because part of c14n is ensuring that the
declarations appear in exactly the right spot, but apart from handling the
InclusivePrefix list in the special way, it's probably not that far off.

-- Scott




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]