在xsl中怎么样清除前一个字符?
比如
<?xml version= "1.0 " encoding= "UTF-8 " ?>
<xsl:stylesheet xmlns:xsl= "http://www.w3.org/1999/XSL/Transform " xmlns:msxsl= "urn:schemas-microsoft-com:xslt " version= "1.0 ">
<xsl:template match= "/ ">
aab
<!-- insert some statement to delete the last char 'b ' from 'aab ' -->
</xsl:template>
</xsl:stylesheet>
请帮忙insert some statement .
[解决办法]
substring( 'aab ',1,string-length( 'aab '))
?
[解决办法]
<xsl:variable name= "chars "> aab </xsl:variable>
substring(chars,1,string-length(chars))