I want to add a page number when there is more than one page in a xsl tag.
<Page Lien="../pages/Q_MLMQ_20220604_00000_N_002_003Y.pdf">02</Page>
In this example the page numbers are 02, and 003 (but i want to delete the 0).
If at the end there is a Y.pdf, i need the page number before the Y.pdf
<Page>2,3</Page>
If it's N.pdf, i do not need the page number before the N.pdf since it's only one page
<Page Lien="../pages/Q_MLMQ_20220604_00000_N_017_017N.pdf">17</Page>
<Page>17</Page>
Here's how i did it (but i only get page 2)
<xsl:if test="@Lien">
<xsl:element namespace="http://www.cedrom-sni.com/schema/newsv1.xsd" name="page">
<xsl:value-of select="format-number(..//Page, '#')"/>
</xsl:element>
</xsl:if>
I get
<Page>2</Page>
Thank you