[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: is it possible xpath expression [A-Z]?

Subject: Re: is it possible xpath expression [A-Z]?
From: "ivanmacculi\@libero\.it" <ivanmacculi@xxxxxxxxx>
Date: Fri, 27 Nov 2009 13:28:14 +0100
Re:  is it possible xpath expression [A-Z]?
thx Michael M|ller-Hillebrand, could you suggest me a good reference? now i'm
using XSLT manual of Michiel van Otegem. but is incomplete, i think.






> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.