W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > August 2003

Re: Possible new RDF test "<br/>" in RDF/XML exc-canonicalizing to "<br></br>"

From: Brian McBride <bwm@hplb.hpl.hp.com>
Date: Wed, 06 Aug 2003 14:29:35 +0100
Message-ID: <3F3102BF.3040701@hplb.hpl.hp.com>
To: Dave Beckett <dave.beckett@bristol.ac.uk>
CC: RDF Core <w3c-rdfcore-wg@w3.org>



Dave Beckett wrote:
> Martin Duerst suggests that we add an exc-C14n test that shows
> "<br/>" in RDF/XML exc-canonicalizing to "<br></br>"  in the graph.
> 
>   [[I think it would be good to add an example like this
>    just to document how RDF/XML syntax, lexical value, and so on,
>   are related, and in particular, that they are not exactly the same.]]
>  -- http://lists.w3.org/Archives/Public/w3c-rdfcore-wg/2003Aug/0045.html

I've no objection in principle, and I'd rather satisfy folks than not. 
However, this is late in the day.  We will need to be careful about what 
we say in the implementation report, or ask folks to retest.  Does this 
test really add something new?

Brian
> 
> This has no consequences on any document but justs adds another exc-C14n
> test.  Any implementation that already does exc-C14n or C14n will
> already do this.  We happen to have not tested it our existing tests.
> 
> i.e. a new test for rdfms-literal-is-xml-structure - test 006
> 
> Option 1
> 
> input rdfms-literal-is-xml-structure/test006.rdf
> 
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>           xmlns:eg="http://example.org/">
>   <rdf:Description rdf:about="http://example.org/foo">
>     <eg:bar rdf:parseType="Literal"><br/></eg:bar>
>   </rdf:Description>
> </rdf:RDF>
> 
> outputrdfms-literal-is-xml-structure/test006.rdf
> 
> <http://example.org/foo> <http://example.org/bar> "<br></br>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
> 
> Option 2
> 
> The <br> element above remains without a namesapce.  If we did add one
> it would likely be the html xmlns="http://www.w3.org/1999/xhtml" like this:
> 
> input rdfms-literal-is-xml-structure/test006.rdf
> 
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>           xmlns:eg="http://example.org/">
>   <rdf:Description rdf:about="http://example.org/foo">
>     <eg:bar rdf:parseType="Literal" xmlns="http://www.w3.org/1999/xhtml"><br/></eg:bar>
>   </rdf:Description>
> </rdf:RDF>
> 
> outputrdfms-literal-is-xml-structure/test006.rdf
>   <http://example.org/foo> <http://example.org/bar> "<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
> 
> Dave
Received on Wednesday, 6 August 2003 09:32:14 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:59:34 EDT