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

Split element

Subject: Split element
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Fri, 27 May 2005 21:50:50 -0700
split element
I have an element that looks like this:

<item>
 <l>
   email
   <tb />
   wirthcrew@xxxxxxx
 </l>
</item>

I need to match on all items that contain "email", so:
<xsl:template match="l[contains(.,'email')]">

Now ho do I split the text / <tb /> of element l to just return the email?

Nevermind, I got it!  (I love xslt).
<xsl:value-of select="text()[last()]"/>

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.