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

Re: How to "copy" a DTD reference?

Subject: Re: How to "copy" a DTD reference?
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Wed, 13 Aug 2003 20:40:51 +0200
xsl copying dtd
Mark R. Diggory wrote:
Its been awhile since I posted to the list. I finally have a good question I can't find any solid resources on. Is there a way to copy a DTD reference in the original source document using XSL?

Not easily. You can specify a public and system id for a DTD to be referenced in a DOCTYPE decl in the result using xsl:output, but there is no way to retrieve them from the input from within the style sheet. You can't use the usual trick of passing the values as parameters either, because (AFAIK) xsl:output properties are constants. Some processors allow the values to be AVTs, check whether it works with yours.

If you use the XSLT from Java (JAXP), you could try to get the
input DTD from an entity resolver and use it to set the output
properties of the transformer object.

J.Pietschmann


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.