I think there is a flaw with my work,
<xsl:variable name="tex" as="xs:string*" select="preceding-sibling::text()[1]"/>
<xsl:choose>
<xsl:when test="(tokenize(normalize-space(lower-case($tex[last()])), '\s[^s]?')[last()]='see' and not(ancestor::dummyarticle)) or (tokenize(normalize-space($tex[last()]), ' ')[last()]='also' and tokenize(normalize-space(lower-case($tex[last()])), '\s[^s]?')[last()-1]='see' and not(ancestor::dummyarticle))">
...
</xsl:when>
</xsl:choose>
when the text is " (see", it does not go to the when block, how come? Thanks.
|