Hello
I have the following xml
<root>
<Table name="abc">
<Column name="987">
<Value>h</Value>
</Column>
<Column name="123">
<Value>a</Value>
</Column>
<Column name="456">
<Value>g</Value>
</Column>
</Table>
<Table name="ghi">
<Column name="jkl">
<Value>5</Value>
</Column>
</Table>
<Table name="mno">
<Column name="pqr">
<Value>7</Value>
</Column>
<Column name="1011">
<Value>p</Value>
</Column>
</Table>
<Table name="stu">
<Column name="vwx">
<Value>3</Value>
</Column>
</Table>
</root>
Using this I would like to create a table like that below:
abc
Column Value
987 h
123 a
456 g
ghi
Column Value
jkl 5
mno
Column Value
pqr 7
1011 p
stu
Column Value
vwx 3
To try and create this table I have used the xsl below but this only creates
the following:
abc
Column Value
ghi
Column Value
mno
Column Value
stu
Column Value
How can I adjust the xsl below to include values for Column and Value?
Thanks.
<xsl:template match="ROOT">
<xsl:for-each select="Table">
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:value-of select="@name"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
Column
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
Properties
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:for-each select="Table/Column">
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:value-of select="@name"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</xsl:for-each>
</xsl:template match>