Subject: RE: [xsl] output Entity From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 25 Apr 2007 11:25:41 +0100 |
It can't be done in any standard way in XSLT 1.0 or 2.0. With Saxon, you can use the saxon:doctype extension. Apart from that, your options are (a) hacking something using disable-output-escaping or XSLT 2.0 character maps, or (b) some kind of postprocessing. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: jingjun long [mailto:longjingjun@xxxxxxxxx] > Sent: 25 April 2007 10:48 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] output Entity > > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] output Entity, Colin Adams | Thread | RE: [xsl] suggestions for per reque, Robert Koberg |
[xsl] Segfault shutting down exslt/, Stephan Suerken | Date | RE: [xsl] Generating JSP/JSTL, Michael Kay |
Month |