|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: matching text with regexp in xpath
Title: matching text with regexp in xpath I
don't know if Xalan does it yet, but it should be straightforward to plug in
regexp support, either from Apache's regexp (I forget its name) or even JDK
1.4's.
As a
minimal approach it might be interesting to build some regexp based on XSLT's
inbuilt string manipulating/matching functionality, things like your examples
should already be possible (but don't look nice), i.e. modularise stuff like
:
<xsl:variable name="thing" select=./@this:whatever
/>
<xsl:choose>
<xsl:when test="contains($thing))">
<xsl:call-template
name="gotdatting"/>
</xsl:when> <xsl:otherwise>
</xsl:otherwise> </xsl:choose>
</xsl:template> ---
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








