[
Lists Home |
Date Index |
Thread Index
]
On Sun, Jul 11, 2004 at 01:41:31PM +0100, Michael Kay wrote:
> > Actually, that does suggest a reasonable option:
> >
> > <docset>
> > <document><![CDATA[<?xml version="1.0"?>
> > <!DOCTYPE example1 [ <!ELEMENT one (#PCDATA)> ]>
> > ]]>
> > <one>
> > ..</one>
> > </document>
>
> It's certainly a possible approach, and one that many people use, but it's
> very poorly supported by tools such as XSLT and XQuery.
True. But if I wanted to query that sort of information usefully, then I
think I would be forced to recode it into XML, which means inventing
elements and attributes for that purpose:
<ex:xmldecl version="1.0">
<ex:doctype name="example1">
<ex:elementdecl name="one" contentspec="(#PCDATA)"/>
</ex:doctype>
Is there a de-facto standard for doing that, or more generally, for
representing DTDs as XML rather than in DTD syntax?
Regards,
Brian.
|