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

Re: output Entity

Subject: Re: output Entity
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 25 Apr 2007 12:02:58 +0200
Re:  output Entity
jingjun long wrote:
Hello there,

The following will be my output XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mybook PUBLIC "-//ATM//DTD MYBOOK//EN" "mybook.dtd"[
   <!ENTITY G2007040101 SYSTEM "G2007040101.gif" NDATA GIF>
   <!ENTITY G2007040102 SYSTEM "G2007040102.gif" NDATA GIF>
]>
<mybook>
   .......
</mybook>

Using <xsl:output>, I know how to output PUBLIC and SYSTEM. The thing is I do not know how to output the entity declaration in the xml. I.e.: how to output the following:
<!ENTITY G2007040101 SYSTEM "G2007040101.tif" NDATA TIF>
in the XML.


I searched XSLT spec 1.0, 2.0 and this list-archive but I did not find a solution yet. So I post it here.


There's no keyword or anything that will help you here. However, you can achieve it with xsl:character-maps in XSLT 2.0. A while ago I explained something like that on the Saxon list how to do so, but that was about how to extend an existing doctype, I believe. In a previous post (just one before this) I explained how to use xsl:character-maps to do things not normally achieved with basic syntax.


Cheers,
-- Abel Braaksma

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.