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

RE: extracting file name from unparsed-entity-uri

Subject: RE: extracting file name from unparsed-entity-uri
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 3 Dec 1999 17:33:53 -0000
unpar files
It's another of those problems that needs recursion. Write a named template
t that takes the string as a parameter p and says, in effect:
if (not contains($p,"/")) then value-of $p
else call-template t with-param p=substring-after($p,"/")

Mike Kay

> -----Original Message-----
> From: Dudley, Mark [mailto:Mark.Dudley@xxxxxxxxxxxxx]
> Sent: 03 December 1999 16:55
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: extracting file name from unparsed-entity-uri
> 
> 
> Hello,
> 
> I have need to extract the "file name" from a string returned by
> unparsed-entity-uri. Obviously, the path is dependent on 
> where the file sits
> so it can be of arbitrary length. The string I am dealing 
> with is something
> like file:/C:/foo/bar/somefile.gif where I need the 
> somefile.gif string. Is
> there a way to do this in XSL or with an extension? Any help would be
> greatly appreciated.
> 
> Mark Dudley
> mark.dudley@xxxxxxxxxxxxx
> (716) 422-9844
> 
> 
>  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.