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

substring

Subject: substring
From: dan@xxxxxxxxxxxxx
Date: Tue, 10 Jan 2006 07:42:22 -0500 (EST)
the temptations mp3
I would like to use substring-after on an element, but cannot figure out
the syntax. Here is the xml:

<key>Location</key>
<string>file://localhost/E:/Rap/2%20Pac/Greatest%20Hits%20Disc%201/03-Temptations.mp3</string>

Here is the xsl:

<location>
<xsl:value-of select="substring-after(child::*[preceding-sibling::* =
'Location'], 'file://localhost/'" />
</location>

I would like the end result to be:
<location>
E:/Rap/2%20Pac/Greatest%20Hits%20Disc%201/03-Temptations.mp3
</location>

This part - child::*[preceding-sibling::* = 'Location'] works well to grab
the <string> of out <key>Location</key>. It is the substring-after part
that I am having problems with.

Any help would be greatly appreciated.

Thanks,
Dan

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.