I am using Saxon9 B
I have need to compare an element value in one file against an element value in another file.
It was easy..
Code:
<xsl:if test="not(. = $piuSubTree//entry[@colname='1'])">
<xsl:text>Invalid PIU Naming: "</xsl:text>
...
Problem is, now the users want to ignore leading or trailing whitespace. So I tried this:
Code:
<xsl:analyze-string select="." regex="^\s*({$piuSubTree//entry[@colname='1']})\s*$">
<xsl:non-matching-substring>
<xsl:text>Invalid PIU Naming: "</xsl:text>
Probably not surprising to you, but it was to me.. this doesn't work.
My guess is I've munged the regex in one way or another.
Can anyone detect what I've missed?
------------------------
Keep Moving Forward
GnuPG Key fingerprint = 1AD4 726D E359 A31D 05BF ACE5 CA93 7AD5 D8E3 A876
Michael Hare