ivanmacculi(_at_)libero(_dot_)it wrote:
<xsl:variable name="g" select="//mets:div[matches(@LABEL, '^Pagina
[0-9]+$')]"/>
i forgot to ask you how to exclude from the transformation the first one of the
list, in this case:
<mets:div LABEL="Pagina 59">
<mets:fptr FILEID="file.00116"/>
</mets:div>
is it possible? thx.
You could simply add an expression e.g.
<xsl:variable name="g" select="//mets:div[matches(@LABEL, '^Pagina
[0-9]+$') and not(@LABEL = 'Pagina 59')]"/>
Or if you want to exclude the first found element then
<xsl:variable name="g" select="(//mets:div[matches(@LABEL, '^Pagina
[0-9]+$')])[position() gt 1]"/>
--
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>
--~--