This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Acceding to the system
- To: xsl-list at mulberrytech dot com
- Subject: Re: Acceding to the system
- From: Rick Geimer <Rick dot Geimer at nsc dot com>
- Date: Fri, 18 Feb 2000 09:45:33 -0800
- References: <3.0.6.32.20000211123703.0092b420@mail.tcd.ie>
- Reply-To: xsl-list at mulberrytech dot com
Marta,
Is the name attribute of your graphic element an entity? If so, it is
probably defined at the top of your file like so:
<!ENTITY pic01 SYSTEM "pic01.gif" NDATA GIF>
If this is the case, then I think you can access the system identifier
(i.e. the file name) using the unparsed-entity-uri() function of XSLT.
Read up on it at the following URL:
http://www.w3.org/TR/xslt#function-unparsed-entity-uri
Rick Geimer
National Semiconductor
rick.geimer@nsc.com
Marta Lobato wrote:
>
> Hello,
>
> I am Marta Lobato, a final year student at
> Trinity College of Dublin.
>
> For my project I am using XSL and I have a question
> that I would be so grateful if you can help me.
>
> I have the following element:
>
> <graphic name="pic01">
>
> And my XSL has to write <img src="pic01.gif"> or
> <img src="pic01.jpg"> The problem is that I have not
> got the extension of the graphic, and if I access
> the img directory I can find it out, but I do not
> know if you can do it from the XSL file.
>
> Thank you in advance.
>
> Marta Lobato.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list