OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Re: Encapsulating an XML document within an XML element

[ 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.




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS