Re: Best way of testing Hexadecimal value [xslt 1.0]
If you don't want to use a bullet character you can use the numeric reference, just as your source has done and test
. = '& # x 2 0 2 2 ;'
It's not really clear if that is what you are asking?
<!-- Do Something here --> </xsl:when> <xsl:when test=".!='.'"><!-- ='.' IS LITERAL BULLET SYMBOL -->
xsl:otherwise is of course more efficient than testing the negation which is repeating the test done in the previous clause.
you can test if number(.)=number(.) If the string represents a number, this is true, if it is a non number it is the test NaN = NaN which is false.<!-- Do Something different here --> </xsl:when> </xsl:choose> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format