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

Re: Resolving ENTITY attributes

Subject: Re: Resolving ENTITY attributes
From: Rick Geimer <rick.geimer@xxxxxxx>
Date: Thu, 29 Apr 1999 09:18:07 -0700
rick light
I second the motion for including this capability in XSL. It is fairly
common practice to reference images via entity attributes. It would be a
shame to have to pre-process XML with these kind of figure references just
to be able to use them with XSL.

Rick Geimer
National Semiconductor
rick.geimer@xxxxxxx

Richard Light wrote:

> Reading the XSLT spec, I don't see a way of resolving ENTITY-type
> attribute values.
>
> If I am using XSLT to produce HTML from my XML source, one obvious
> transformation is to convert ENTITY attribute values to strings
> containing the actual URL of the target.
>
> Thus I would want to render the <xmlimg> element in e.g. (where the src
> attribute is of type ENTITY):
>
> <!DOCTYPE xmldoc ... [
> <!ENTITY img1 SYSTEM "image1.gif" NDATA gif>
> ...
> ]>
> <xmldoc>
> ...
> <xmlimg src="img1"/>
> ...
> </xmldoc>
>
> as:
>
> <IMG SRC="image1.gif">
>
> in the resulting HTML.
>
> Is there a way to do this?  If not, I think there should be.
>
> Richard Light.
>
> Richard Light
> SGML/XML and Museum Information Consultancy
> richard@xxxxxxxxxxxxxxxxx
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.