[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Regex string function question
> Random thoughts : > > <aaa> > <bbb>123</bbb> > <bbb>ZYX</bbb> > <ccc>123</ccc> > <date-time>a nice time was 2001-01-24T09:20:25<date-time> > </aaa> > > > Select all nodes containing a number : > > <xsl:apply-templates select="//*[match-regexp(.,'\d')]"/> > > ======================================================= > All nodes with names starting with b or c: > <xsl:apply-templates > select="//*[match-regexp(name(),'\A[bc]')]"/> > > =============================================================== Noting that 4XSLT has the equivalent of your match-regexp function through its ft:match extension function. -- Uche Ogbuji Principal Consultant uche.ogbuji@xxxxxxxxxxxxxxx +1 303 583 9900 x 101 Fourthought, Inc. http://Fourthought.com 4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA Software-engineering, knowledge-management, XML, CORBA, Linux, Python 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
|