[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: is it possible xpath expression [A-Z]?
Am 27.11.2009 um 13:03 schrieb ivanmacculi@xxxxxxxxx: > I must select this element with attribute: > > <mets:div LABEL="Canto XL">, tha value of attribute starts with roman number I (one)and finished with L (fifty). > what can i do to select all of these elements? I assume your attribute value always starts with "Canto" and continues with a roman number. Then you could use: <xsl:template match="mets:div[@LABEL[matches(., '^Canto [IVXL]+$')]]"/> This is of course not very precise, because it also matches "Canto VIVIX", but I guess this is unlikely. You should definitely read the chapter on regular expressions in a good XSLT 2.0 reference. > thanks to everyone who wants to help me. HTH, - Michael M|ller-Hillebrand -- _______________________________________________________________ Michael M|ller-Hillebrand: Dokumentations-Technologie Adobe Certified Expert, FrameMaker Lvsungen und Training, FrameScript, XML/XSL, Unicode Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747
|
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
|