[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Writing an Entity Reference

Subject: Re: Writing an Entity Reference
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 19 Jun 2006 16:51:15 +0100
Re:  Writing an Entity Reference
On 6/19/06, Woods, Christopher <cwoods@xxxxxxxxxxxxxxxxx> wrote:
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">

Have a read of:


http://www.dpawson.co.uk/xsl/sect2/N2281.html#d3564e220

...however I would argue why bother?  Unless you plan on hand-editing
the file later on, why  the need for entities?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.