RE: xsl -- Inserting a DOCTYPE if needed
> 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@n... work: Michael.Kay@s...
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