Subject: Re: [xsl] Writing an Entity Reference From: "andrew welch" <andrew.j.welch@xxxxxxxxx> Date: Mon, 19 Jun 2006 16:51:15 +0100 |
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:
<!ENTITY myEntityRef SYSTEM myImgRef >
So how can I get:
<!ENTITY anotherIMAGE SYSTEM "images/anotherIMAGE.png">
...however I would argue why bother? Unless you plan on hand-editing the file later on, why the need for entities?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Writing an Entity Reference, Woods, Christopher | Thread | RE: [xsl] Writing an Entity Referen, Michael Kay |
[xsl] Writing an Entity Reference, Woods, Christopher | Date | RE: [xsl] Writing an Entity Referen, Michael Kay |
Month |