Hi Dave,
I had recently the same problem, what do you think of accessing the
first cell
<xsl:apply-templates select="table:table-cell[1]">
<xsl:with-param name="maxColumnNo" select="$maxColumnNo" />
<xsl:with-param name="currentRowNumber" select="$currentRowNumber" />
</xsl:apply-templates>
and traversing afterwards to every following cell sibling.
<xsl:choose>
<xsl:when test="count(following-sibling::*) != 0">
<xsl:apply-templates select="following-sibling::*[1]">
...
By this you might keep in mind the row and column number, which gets
very useful sometimes (e.g. other paradigm use a jump index instead of
repetition of cells).
Svante
Dave Pawson wrote:
Doing some position dependent processing, and I needed to expand
the spanned cells to enable simpler xslt processing.
Not sure if it will help others, but its below.
The included file is simply the identity transform.
It's written as an xslt 2.0 file,
but doesn't have any dependencies, so should downgrade
easily.
HTH
...
<xsl:template name="cpycell">
<xsl:param name="n" as="xs:integer"/>
<xsl:param name="val" as="xs:string"/>
<table:table-cell gen="t">
<xsl:choose>
<xsl:when test="$val = ''">
<xsl:text>*</xsl:text>
Why are you giving out a '*'?
</xsl:when>
<xsl:otherwise>
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]