ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

dealing with doctype dtd's

Subject: dealing with doctype dtd's
From: "Snyder, Christopher" <SnyderC@xxxxxxx>
Date: Tue, 30 Jan 2001 14:48:58 -0500
doctype file
    Thank you very much to the people on this list who've taken the time to
rectify my misunderstandings about what xslt is and what it does.

    I am changing xml documents to slightly different xml documents, and now
I'm stuck on transferring the DOCTYPE which may or may not be present.  I
can output a predetermined, static doctype as in:

 <xsl:output method="xml" indent="yes" doctype-system="sample.dtd"/>  

But I would like to be able to identify the existing doctype in the original
xml, and output it in the new XML without changing it, or omit it altogether
if it does not exist.

For instance one xslt should take in from XML1.xml:
<?xml version="1.0"?>
 <!DOCTYPE record SYSTEM "sample1.dtd">
one time, and the next time from XML2.xml:
 <?xml version="1.0"?>
<!DOCTYPE record SYSTEM "sample2.dtd">

and then spit out what it took in each time.  

How can I access the doctype in xslt?  And if the doctype file specified
doesn't exist on the machine this xslt is run on, can it be ignored without
halting the transformation?

I am using ie5.0 with the msxml3 parser, and have no option to switch.  Do I
need to resort to using javascript or can this be done with xslt?

Thank you for your time,
Chris

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.