[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: newbie question about strings and XPath expression
Hi, > Hello Jarno, thank you, it worked fine. > I'm actually trying to extract the items of an enumeration in > an xhtml file to present > them as individual item elements in the xml output. Is there > a way of iterating through > this input text looking for the enumeration items? I mean, > could I increment the number > in the starts-with expression somehow? By writing a recursive template you can increment the number used in the starts-with test. But couldn't you just test if the text node start with a number, e.g. not(string(number(substring-before(., '.'))) = 'NaN') Cheers, Jarno - Hocico: Ruptura 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
|