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

Get file name without path info

Subject: Get file name without path info
From: Nathan Shaw <n8_shaw@xxxxxxxxx>
Date: Fri, 8 Mar 2002 10:47:51 -0800 (PST)
get filename from path
I am using saxon:system-id() to get the name of the
xml file being parsed. However, as you probably know,
Saxon returns the entire path along with the file
name. I want to just get the file name, strip off the
'.xml' and replace it with '_p.html'.

So, Saxon gives me this:
file:/C:/Documents and Settings/nshaw.HQIRMS/My
Documents/spaceresearch/newxml/general_info/what.xml

and I want to end up with this:
what_p.html

I am feeling rather handicapped by XSL when it comes
to doing this. I am used to having functions like
split(), gettoken(), replace(), etc... available to
me.

Can someone give me some guidance as to how to do this
in XSL?

Thanks,

--Nate

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

 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.