[Home] [By Thread] [By Date] [Recent Entries]
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> ---
|

Cart



