[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] output Entity


Subject: RE: [xsl] output Entity
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Wed, 25 Apr 2007 11:06:07 +0100

This is not possible in standard XSLT.

You need a processor that lets you write (or already provides) an output method to do this.

From: jingjun long <longjingjun@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] output Entity
Date: Wed, 25 Apr 2007 17:47:38 +0800

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.

Thanks very much.

JingJun Long


_________________________________________________________________
Get Hotmail, News, Sport and Entertainment from MSN on your mobile. http://www.msn.txt4content.com/



Current Thread
Keywords