W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > January 2008

Re: Section 1 of the New RDFa Syntax Draft ready for reviews

From: Ivan Herman <ivan@w3.org>
Date: Tue, 29 Jan 2008 11:59:01 +0100
Message-ID: <479F06F5.6050800@w3.org>
To: Mark Birbeck <mark.birbeck@formsPlayer.com>
Cc: Shane McCarron <shane@aptest.com>, "Hausenblas, Michael" <michael.hausenblas@joanneum.at>, Michael Bolger <michael@michaelbolger.net>, RDFa <public-rdf-in-xhtml-tf@w3.org>, peter.krantz@gmail.com


Mark Birbeck wrote:
> Hi Ivan,
> 
>> Well... my implementation starts with an XML parser, and does everything
>> on the resulting DOM tree. Ie, it will not work on an HTML+RDFa version
>> unless it is proper XML...
>>
>> :-(
> 
> Right...but that's not because an HTML DOM is different to an XHTML
> DOM. The methods to obtain a list of children, to get attributes, not
> move up and down the tree, to get the text nodes...a lot of these
> methods are the same.
> 
> However, that's not to say that this is the only way to do it. The
> HTML could also be pushed through Tidy and then treated as XML. I'm
> just saying that the 'processing model' as defined so far, is actually
> agnostic as to the type of DOM being used.
> 

Ah, o.k. Great.

I must publicly admit that I have never ever worked with the HTML DOM 
(as opposed to the XHTML DOM; I try to keep away from javascript 
whenever I can:-), so...

Ivan

> (Even down to the use of @xmlns, in that this is processed just like
> any other attribute, and so works in my parser, even when the browser
> is running in HTML-mode.)
> 
> Regards,
> 
> Mark
> 

-- 

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 Tuesday, 29 January 2008 10:59:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 29 January 2008 10:59:05 GMT