Kaydet (Commit) b68ed302 authored tarafından David Tardon's avatar David Tardon

check only Column elements when computing column index

Change-Id: I4856227c05e97daefbae7e98c0e9d70f84e1a2b4
üst 6f364298
...@@ -5122,18 +5122,18 @@ ...@@ -5122,18 +5122,18 @@
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:variable name="recent-index" <xsl:variable name="recent-index"
select="preceding-sibling::*[@ss:Index][last()]"/> select="preceding-sibling::ss:Column[@ss:Index][last()]"/>
<xsl:choose> <xsl:choose>
<xsl:when test="$recent-index"> <xsl:when test="$recent-index">
<xsl:variable name="nodes-up-to-current" <xsl:variable name="nodes-up-to-current"
select="set:intersection(preceding-sibling::*, $recent-index/following-sibling::*)"/> select="set:intersection(preceding-sibling::ss:Column, $recent-index/following-sibling::ss:Column)"/>
<xsl:variable name="allSpans" select="$nodes-up-to-current/@ss:Span"/> <xsl:variable name="allSpans" select="$nodes-up-to-current/@ss:Span"/>
<xsl:value-of <xsl:value-of
select="$recent-index/@ss:Index + count($nodes-up-to-current) + sum($allSpans) + count($allSpans)" select="$recent-index/@ss:Index + count($nodes-up-to-current) + sum($allSpans) + count($allSpans)"
/> />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:variable name="allSpans" select="preceding-sibling::*/@ss:Span"/> <xsl:variable name="allSpans" select="preceding-sibling::ss:Column/@ss:Span"/>
<xsl:value-of select="$currentCount + sum($allSpans) + count($allSpans)"/> <xsl:value-of select="$currentCount + sum($allSpans) + count($allSpans)"/>
</xsl:otherwise> </xsl:otherwise>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment