In answer to my own question, i have realised it is possible to split up the variable definition, like this -
<xsl:variable name="tens">
<xsl:if test="contains('LMNOPQRST',$MYxaxis)">
<xsl:value-of select="10"/>
</xsl:if>
<xsl:if...
This bit of xsl takes a letter from A-T (in $MYxaxis) and converts it into a number 0-18 (in $x)
<xsl:variable name="x" select="translate($MYxaxis,'ABCDEFGHJKLMNOPQRST','0123456789012345678')" saxon:assignable="yes"/>
<xsl:if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.