You can't do this in standard XSLT, but Saxon has an extension to enable it:
http://www.saxonica.com/documentation/extensions/instructions/doctype.html
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Ganesh Babu N [mailto:nbabuganesh(_at_)gmail(_dot_)com]
Sent: 18 March 2009 12:23
To: XSL
Subject: [xsl] Generating <!ENTITY list
Dear All,
I am having
input:
<graphic file="1.jpg"/>
<graphic file="2.jpg"/>
I need to create <!ENTITY List inside the DOCTYPE. Is the any
way i can achieve this using XSL. I am using ver 2.0 and saxon9.
The output should be :
<!DOCTYPE article
[
<!ENTITY gr1 SYSTEM "1.jpg" NDATA IMAGE> <!ENTITY gr2 SYSTEM
"2.jpg" NDATA IMAGE> ]>
Regards,
Ganesh
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--