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

Re: How to View Entity Reference

Subject: Re: How to View Entity Reference
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 14 Sep 2006 13:15:56 +0200
refere entity in xml attribute
vanaja selvaraj wrote:

<!DOCTYPE TEST SYSTEM "1.dtd" [<!ENTITY E0001 SYSTEM ".\Equations\008x0001.jpg" NDATA jpg>]>
.....
<IMAGE>
<FIGUREIMAGE ID="E0001"/>
</IMAGE>
</TEST>

This looks to me like a mix of an entity reference (the word ENTITY), a DTD declaration (the words E00001 and SYSTEM and the way the rest of the text is layed out) and a ELEMENT declaration (NDATA).

I don't know much of DTD, finding it an awkward thing to work with (so perhaps my statement above is wrong). But if you want an entity and you want it referenced, you better declare it as such and use it as such.

-- ENTITY declaration should look like:
<!ENTITY entName "entity Value">

-- Entity reference should look like:
&entName;

If your document would look something like this (parts left out for clarity):
<!ENTITY E0001 ".\Equations\008x0001.jpg">
<IMAGE>
<FIGUREIMAGE ID="&E0001;" />
</IMAGE>


you would stand a good chance of seeing it both in an XML viewer (try IE or FF, your current document will raise errors) and from the output of your XSLT stylesheet, of course depending on how you architected it.

Cheers,
Abel Braaksma
http://abelleba.metacarpus.com

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.