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

Re: Isolate spezial text term with pattern

Subject: Re: Isolate spezial text term with pattern
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Mon, 25 Jul 2005 09:29:57 -0500
Re:  Isolate spezial text term with pattern
> What i now what to do is the following: I will islote the terms "PB123" and
> "PB456" and so on in the hole document. Therefore i need a spezial pattern
i
> think. The pattern is always the same: "PB" and then 3 or 4 numbers. I will
> write this terms in an extra column in a HTML table.

Check out the XPath string functions http://www.w3.org/TR/xpath.  The
function substring-after seems to be what you're looking for.

Quick and dirty example (untested)

<xsl:template match="comment">
<td>PB<xsl:value-of select="substring-after(.,"PB")" /></td>
</xsl:template>


Jon Gorman

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.