Am 27.11.2009 um 13:03 schrieb ivanmacculi(_at_)libero(_dot_)it:
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[(_at_)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
Lösungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--