[xsl] Split element

Subject: [xsl] Split element
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Fri, 27 May 2005 21:50:50 -0700
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