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

Generating an internal subset?

Subject: Generating an internal subset?
From: dvint@xxxxxxxxx
Date: Wed, 30 Jun 2010 11:51:09 -0700
 Generating an internal subset?
I need to create the following in the XML output:

<!DOCTYPE dmodule [
	<!ENTITY % ISOEntities PUBLIC "ISO 8879-1986//ENTITIES ISO Character
Entities 20030531//EN//XML"
"http://www.s1000d.org/S1000D_3-0/ent/xml/ISOEntities">
	%ISOEntities;
]>

The solution I found was this:

<xsl:text disable-output-escaping="yes">
	<![CDATA[
<!DOCTYPE dmodule [
	<!ENTITY % ISOEntities PUBLIC "ISO 8879-1986//ENTITIES ISO Character
Entities 20030531//EN//XML"
"http://www.s1000d.org/S1000D_3-0/ent/xml/ISOEntities">
	%ISOEntities;
]>
	]]>
</xsl:text>

Just wondering if there is a better way to do this.

Also I had some interesting results while using StylusStudio. without this
statement things would run in a flash, with it, it would take like a
minute to run. Seems like it was trying to go retrieve this external
entity. When running directly with Saxon I saw no difference in processing
time.

..dan

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.