Hi to all
I've this XML file:
<output>
<page1>
<field id="nome">
<value>Andrea</value>
</field>
<field id="citta">
<value>
Milano
</value>
</field>
</output>
I've to create a PDF wih XSL:FO and I use this metod to extract XML Data
<xsl:template match="output/page1">
<xsl:variable name="id_" select="@id"/>
<xsl:variable name="field" select="output/page1/field[@id=$id_]" /> <fo:block font-size="10pt" color="black"> <xsl:value-of select="$id_"/>: <xsl:value-of select="."/> </fo:block> </xsl:template>
I can't see the FIELD attribut ID. How can I show it?
thanks a lot!
Andrea
I've this XML file:
<output>
<page1>
<field id="nome">
<value>Andrea</value>
</field>
<field id="citta">
<value>
Milano
</value>
</field>
</output>
I've to create a PDF wih XSL:FO and I use this metod to extract XML Data
<xsl:template match="output/page1">
<xsl:variable name="id_" select="@id"/>
<xsl:variable name="field" select="output/page1/field[@id=$id_]" /> <fo:block font-size="10pt" color="black"> <xsl:value-of select="$id_"/>: <xsl:value-of select="."/> </fo:block> </xsl:template>
I can't see the FIELD attribut ID. How can I show it?
thanks a lot!
Andrea