|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Encapsulating an XML document within an XML element
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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








