Print

Print


Sorry for the croos-posting but I thought that, with the recent discussion
of resolving entity references in EAD, others might be interested to know
that this is a continuing, and recently revisited thread on the XSL list as
well.
Michael

Michael Fox
Head of Processing
Minnesota Historical Society
345 Kellogg Blvd West
St. Paul MN 55102-1906
phone: 651-296-1014
fax:  651-296-9961
[log in to unmask]
**NOTE NEW AREA CODE EFFECTIVE JULY 12, 1998**

> ----------
> From:         Rick Geimer[SMTP:[log in to unmask]]
> Sent:         Thursday, April 29, 1999 11:18 AM
> To:   [log in to unmask]
> Subject:      Re: Resolving ENTITY attributes
>
> 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
> [log in to unmask]
>
> 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
> > [log in to unmask]
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>