[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: starts-with any number
> If I want to know if a variable starts with a specific number > (let's use 5), I can do this: > > <xsl:if test="starts-with($variable, '5')"> > ...do something... > </xsl:if> > > But what is the correct syntax if I want to know if this > variable starts with any number, 0 to 9? > <xsl:if test="starts-with(translate($variable, '0123456789', '9999999999'), '9')"> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|