Re: Are many (X)HTML documents also RDF/XML documents?

On 5/6/2019 3:21 PM, Antoine Zimmermann wrote:
> Interesting remark. I'm not sure what the phrases you quote imply in 
> general, but if you give the following input to the RDF validator at 
> https://www.w3.org/RDF/Validator/, you get an error.

Well, sure, none of the rdf namespaces have been declared anywhere in 
the document, so even if you could otherwise do what is suggested here, 
you need the namespaces.

TomP

> The grammar of rdf:XML is given at 
> https://www.w3.org/TR/rdf-syntax-grammar/#section-Infoset-Grammar
> 
> I don't think that many HTML documents qualify as RDF/XML, if any.
> 
> On 06/05/2019 21:55, Wouter Beek wrote:
>> <?xml version="1.0" encoding="utf-8"?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>>    <title>
>>    </title>
>> </head>
>> <body>
>>    <table>
>>      <tr>
>>        <td>some col 1</td>
>>      </tr>
>>    </table>
>> </body>
>> </html>
> 
> 

Received on Monday, 6 May 2019 21:55:12 UTC