[topicmapmail] Fragmented XTM for web metadata, and some ontology?

Murray Altheim m.altheim@open.ac.uk
Sun, 29 Jun 2003 17:31:46 +0100


Peter P. Jones wrote:
> Does 
> <!ELEMENT resourceData (#PCDATA) >
> permit markup as content?
> Section 2.4 of XML 1.0 appears to me to suggest otherwise.
> It looks as though '<' must be escaped.

PCDATA is character data content, excluding any markup.

> So my earlier example for Thomas was in error.
> 
> The content model in the DTD would have to become
> <!ELEMENT resourceData ANY >
> 
> Ick.

No, that's a common misunderstanding. "ANY" means any declared element,
not any markup. That would mean that any declared XTM element could
appear anywhere within an occurrence, which would be only partly as bad
as allowing any markup whatsoever. Absent a schema, interpretation is
pretty much a guess.

Murray

...........................................................................
Murray Altheim                         http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK                    .

        "There's a lot of intelligence out there that you don't
         know if it's true or not."  -- Anonymous US official
         http://news.bbc.co.uk/1/hi/world/middle_east/3014850.stm