Re: test case 0011

Johannes Koch wrote:
> 
> Ivan Herman schrieb:
>> Regardless of my previous comments on implementability; if we indeed 
>> accept this (and, in my purist moments, I tend to agree with Johannes 
>> on that one)
> 
> :-)
> 
>> this may affect our test suite.
> 
> If you serialise a DOM document fragment in Java using either DOM3 or 
> JAXP transformations, the serialisation contains namespace declarations. 
> E.g. serialization via DOM3 (namespace-aware Apache Xerces and 
> serializer) results in
> 
> E = mc<sup xmlns="http://www.w3.org/1999/xhtml" 
> xmlns:xml="http://www.w3.org/XML/1998/namespace" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2</sup>: The Most 
> Urgent Problem of Our Time
> 

Yep. Whereas what I would do, using my pedestrian (ie, namespace-less) 
XML library is to artificially modify the DOM tree that has to be put 
out as XMLLiteral by adding the namespace declaration manually on the 
top level elements only. Ie, the output would differ character-wise...

Ivan


-- 

Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Wednesday, 5 March 2008 09:32:25 UTC