A couple of XMLLiteral-related questions.

I think the RDFa 1.0 spec is silent on these; it would be nice if RDFa
1.1 could give some unambiguous answers.

Firstly, given:

 <p property="ex:foo"><!--hello--><b>world</b></p>

Should the literal be:

 '<!--hello--><b xmlns="http://www.w3.org/1999/xhtml">world</b>'

Or should it be:

 '<b xmlns="http://www.w3.org/1999/xhtml">world</b>'

That is, do we include comments in the canonicalisation XMLLiteral? In
RDF/XML they are included, but that's a serialisation-specific decision;
we could decide to specify it the other way.

Secondly, given:

 <p property="ex:foo"><!--hello-->world</p>

Is the presence of the comment enough to trigger the generation of an
XMLLiteral, or should a plain literal be generated instead?

For what it's worth, the current behaviour of my parser is to include
comments in XMLLiterals, but for the presence of a comment to not
trigger generating an XMLLiteral.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Friday, 16 April 2010 16:37:07 UTC