On 07/10/05, Svante Schubert <[EMAIL PROTECTED]> wrote: > 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).
That seems like an apply templates by anothe name? Perhaps using this with a template parameter which is the updated true column count could be useful? All I needed was a normalised output for further xslt processing. (Align cells with a 'heading' cell - which the spanning 'broke' if you see what I mean) (sorry about the * in the output. That was my debug) Please feel free to use the stylesheet as you want. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
