[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Acceding to the system
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@xxxxxxx 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|