hi,
i have a xml document like this:
<Row>
<Column>Value A</Column>
<Column>Value B</Column>
</Row>
<Row>
<Column>Value C</Column>
<Column>Value B</Column>
</Row>
Now i would like to print the rows as:
Value A Value B
Value C ..
If the current value of the column is the same as the value of the column of the previous parent node (Row) then don't repeat the value but print .. or blank.
how can i achieve this in xslt?
i have something similar as:
<xsl:template name="Columns">
<xsl:for-each select="Column">
<fo:table-cell>
<fo:block>
<xsl:choose>
<xsl:when test="parent::*/previus-sibling::Column = Column">
..
</xsl:when>
<xsltherwise>
<xsl:value-of select="."/>
</xsltherwise>
</xsl:when>
</fo:block>
</fo:table-cell>
</xsl:for-each>
</xsl:template>
i was wondering what the right code would be for the test property of xsl:when.
it needs to compare for the current column the value of the current column in the current row with the value of the current column in the previous row.
the template Columns is being called from within a for-each loop of the rows.
any help appreciated.
t.i.a.,
erik.
i have a xml document like this:
<Row>
<Column>Value A</Column>
<Column>Value B</Column>
</Row>
<Row>
<Column>Value C</Column>
<Column>Value B</Column>
</Row>
Now i would like to print the rows as:
Value A Value B
Value C ..
If the current value of the column is the same as the value of the column of the previous parent node (Row) then don't repeat the value but print .. or blank.
how can i achieve this in xslt?
i have something similar as:
<xsl:template name="Columns">
<xsl:for-each select="Column">
<fo:table-cell>
<fo:block>
<xsl:choose>
<xsl:when test="parent::*/previus-sibling::Column = Column">
..
</xsl:when>
<xsltherwise>
<xsl:value-of select="."/>
</xsltherwise>
</xsl:when>
</fo:block>
</fo:table-cell>
</xsl:for-each>
</xsl:template>
i was wondering what the right code would be for the test property of xsl:when.
it needs to compare for the current column the value of the current column in the current row with the value of the current column in the previous row.
the template Columns is being called from within a for-each loop of the rows.
any help appreciated.
t.i.a.,
erik.