Re: Undeclared prefix in @datatype -- what happens?

On 26 Aug 2009, at 19:12, Richard Cyganiak wrote:

> All,
>
> One of the more iconic RDFa-enabled pages on the Web is this one:
> http://www.myspace.com/parishilton
>
> As has been pointed out before, it's slightly broken, because the  
> xsd: namespace is used in @datatype, but undeclared in the document.
>
> Now I wonder what a conformant RDFa parser should do when confronted  
> with an undeclared namespace in @datatype? Ignore the triple? Ignore  
> the @datatype? Assume the empty string as prefix URI? Halt and catch  
> fire?

fwiw, my vote is for ignoring the triple. Producing a wonky literal is  
simply annoying. Halting doesn't seem to be in the spirit of RDFa.

However in practice I'd assume the xml schema namespace and repair it.

Damian

Received on Wednesday, 26 August 2009 19:18:40 UTC