if para2 is an empty element, then the regex success and
return an empty string. How do I express in my regex that
empty is a non-matching regex ?
Further to Joe's response: analyze-string partitions the input string into a
sequence of substrings, passing substrings that match the regex to
xsl:matching-substring and those that don't match to
xsl:non-matching-substring. If the input is empty, there will be no
substrings, therefore no calls on either xsl:matching-substring or
xsl:non-matching-substring.
If you want to test whether the string as a whole matches the regex, use the
matches() function.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--