xsl-list
[Top] [All Lists]

Split element

2005-05-27 21:50:50
I have an element that looks like this:

<item>
 <l>
   email 
   <tb /> 
   wirthcrew(_at_)aol(_dot_)com 
 </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()]"/>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • Split element, Karl Stubsjoen <=