Subject: Re: [xsl] how to change the values of a list of attribute excluding one or more of these. From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 27 Nov 2009 14:52:46 +0100 |
<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.
<xsl:variable name="g" select="//mets:div[matches(@LABEL, '^Pagina [0-9]+$') and not(@LABEL = 'Pagina 59')]"/>
<xsl:variable name="g" select="(//mets:div[matches(@LABEL, '^Pagina [0-9]+$')])[position() gt 1]"/>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] how to change the values of , ivanmacculi\@libero\ | Thread | RE: [xsl] how to change the values , Michael Kay |
[xsl] how to change the values of , ivanmacculi\@libero\ | Date | RE: [xsl] new: how to change value , ivanmacculi\@libero\ |
Month |