The pattern for correctly written roman numerals is
^M*(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$
To stop at 50, use
^(XL|L?X{0,3})(IX|IV|V?I{0,3})$
-W
On Fri, Nov 27, 2009 at 1:30 PM, Martin Honnen
<Martin(_dot_)Honnen(_at_)gmx(_dot_)de> wrote:
ivanmacculi(_at_)libero(_dot_)it wrote:
in particular i need to select all of elements that have, as attribute, a
word (canto) followed by a roman number that starts from I (one) and
finished to L (fifty).
for example <mets:div LABEL="Canto XL">, but also <mets:div LABEL="Canto
X">.
See the answer by Michael Müller-Hillebrand.
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--