xsl-list
[Top] [All Lists]

[xsl] Writing an Entity Reference

2006-06-19 08:41:22
Hi Folks,

I want to build a DTD hold entity references for image files used in my
document.  It should look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY someIMAGE SYSTEM "images/someIMAGE.png">
<!ENTITY anotherIMAGE SYSTEM "images/anotherIMAGE.png">

And so on...

I tried something like this:

<!ENTITY ]]><xsl:value-of select="$myEntityRef"/><![CDATA[ SYSTEM
"]]><xsl:value-of select="$myimgRef"/><![CDATA[">]]>

But it yields:

&lt;!ENTITY myEntityRef SYSTEM myImgRef &gt;

So how can I get:

<!ENTITY anotherIMAGE SYSTEM "images/anotherIMAGE.png">

As an output?  Thanks very much.

Chris Woods

===============================================================================================================================
This message (including any attachments) contains confidential and/or 
proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on the contents 
of this information is strictly prohibited
and may constitute a violation of law.  If you are not the intended recipient, 
please notify the sender immediately by
responding to this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail, please
notify the sender immediately.
===============================================================================================================================

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>