In article <bo4dvp$hbm$3@mail.cn99.com>, one of infinite monkeys
at the keyboard of Zhang Weiwu <weiwuzhang@hotmail.com> wrote:[color=blue]
> Hello. I just read a article "rdf in html: approaches" at
> "http://infomesh.net/2002/rdfinhtml" (guided by google).[/color]
Ah, that's a new one to me. I thought Sean's basic answer to that
question was "don't", but you've found a longer one.
[color=blue]
> Looking into the "Embed XML RDF Part II: Embrace Validation" part, there
> are an example DTD and xhtml page.[/color]
The difficulty with that approach is you cannot define a generic DTD
for RDF. You have to look at the structure of the particular RDF
you're using and define a module around it.
I played with rdf-in-html about two or three years ago, but nowadays
the only approach I use is <link> to the Metadata.
[color=blue]
> I don't know much about xhtml
> Modularization, but I think this example should be workable in
> cut-and-paste fashion for newcomers to use.[/color]
Do read Sean's Conclusions section carefully!
[color=blue]
> I was not able to extract a character encoding labeling from any of the
> valid sources for such information. Without encoding information it is
> impossible to validate the document.[/color]
That's nothing to do with RDF. Read the FAQ.
[color=blue]
> Any suggestions to make it validate? Thank you.[/color]
I'd recommend <link ...>
One point he misses is the different content model for <script> in
HTML (CDATA) and XHTML (#PCDATA) - meaning that it "works" in HTML
but not XHTML. Not that I'd recommend it either way.
See <http://ilrt.org/discovery/chatlogs/rdfig/2003-11-03.html#T04-59-34>
--
Nick Kew
In urgent need of paying work - see
http://www.webthing.com/~nick/cv.html