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

Re: feature request

Subject: Re: feature request
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 15 May 2000 17:13:08 +0100 (BST)
Re: feature request
> xsl:output permits me to specify the doctype-public and
> doctype-system, but it doesn't allow me to specify
> any internal dtd additions (I'm particularly thinking of 
> entity additions).
> 
> Because of this I need to kludge it with 
> <xsl:text disable-output-escaping="yes">
> to get the entity in
> 

But your output won't contain any entity references unless you have
even more such kludges, so removing this one kludge wouldn't help much
would it?

If you need a local subset it is probably more convenient in xsl to
instead have a top level dtd file that you specify in doctype-system
that has anyother local modifications and then brings in in your
`public' DTD as an external entity.

If you don't mind using an extension element you can write out this file
using xt:output or similiar, if its contents depend on the source
document. 

So rather than

<!DOCTYPE xxx SYSTEM "a.dtd" [
<!ELEMENT new ....>
]>
<xxx>

do

<!DOCTYPE xxx SYSTEM "new-a.dtd">
<xxx>

and write out new-a.dtd to look like
<!ELEMENT new ....>
...
<!ENTITY % original-a SYSTEM "a.dtd">
%original-a;

David


 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.