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] xsl -- Inserting a DOCTYPE if needed

[ Lists Home | Date Index | Thread Index ]

> How would write a XSL file that inserts the DOCTYPE only and
> only if not present?
>

You can't. The DOCTYPE declaration is not part of the InfoSet or the XPath
data model, therefore your stylesheet can't determine whether or not the
original document had a DOCTYPE or not.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com





 

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

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