M
Mark Johnson
Is there a shorthand for this:
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
Mark said:Is there a shorthand for this:
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
Martin Honnen said:Mark Johnson wrote:Is there a shorthand for this:
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
Your subject line asks for regexp support
that doesn't exist in XPath
1.0 respectively XSLT 1.0.
XPath 2.0 introduces that, see
http://www.w3.org/TR/xquery-operators/#string.match
Mark said:A FEB 2004 working draft? I can assume msxml does yet include all of
these interesting functions?
Mark Johnson said:Is there a shorthand for this:
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
Mark said:Is there a shorthand for this:
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
Janwillem Borleffs said:Mark said:Is there a shorthand for this:
<xsl:when test="$day2[.='1'] or $day2[.='2'] or $day2[.='3']">
<xsl:when test="$test2[.>=1 and .<=3]">
Off topic because you seem to use MSXML, but transformers like Xalan offer a
simple way to implement regular expressions from Java packages like Jakarta
ORO by defining a name space, e.g.:
Which can be applied in the stylesheet as follows:
<xsl:if test="regex:testExp('^\d+$', '0123456789')">
<xsl:text>Match</xsl:text>
</xsl:if>
Where testExp is a method in the RegExpWrapper class.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.