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

RE: refrencing unparsed entities within an attribute

Subject: RE: refrencing unparsed entities within an attribute
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 16 Jun 2000 10:32:09 +0100
refrencing
> In the XML, if I have an unparsed entity value:
> <!ENTITY e1 "ValOfE1" NDATA TEXT>
> can I refrence it within the value of an attribute?
> something like: <tag attr="&e1;"/>

attr needs to be declared as an attribute of type ENTITY, and it can then
reference the entity simply by writing <tag attr="e1"/>

XSLT processors won't do anything special with attributes of type ENTITY,
but you can get the unparsed entity URI by writing
"unparsed-entity-uri(@attr)".

Note that some XML parsers expand the unparsed entity URI to an absolute
URI, others return it to the application as written. Neither SAX nor XSLT
says which is correct.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.