The stylesheet identifies all the objects from DB & as it reads through the DB, it checks the next object "for-each", I need to check the third object as well & define within var being "nextNode3"
I need to specify in the stylesheet to look for the next column – so that I can insert the xml.
This is the code that checks/defines for current & next, with the next being "nextNode"
Expand|Select|Wrap|Line Numbers
- <xsl:for-each select="Activity/ObjectGroup[@type='default']/Object">
- <xsl:sort select="@index" data-type="number" />
- <xsl:variable name="index" select="@index" />
- <xsl:variable name="nextNode" select="../Object[ @index > $index ][1]" />
- <xsl:variable name="nextCol" select="$nextNode/@columnNo" />
- <xsl:variable name="vis" select="string(Attributes/Attribute[ @name='visible'])" />
- <xsl:variable name="visNextCol" select="string($nextNode/Attributes/Attribute[ @name='visible'])" />
Now I just need to specify the 3rd object
This is what i tried - unsuccessful
Expand|Select|Wrap|Line Numbers
- <xsl:variable name="nextNode3" select="../Object[ @index > $index ][2]" />
- <xsl:variable name="nextCol3" select="$nextNode3/@columnNo" />
- <xsl:variable name="visNextCol3" select="string($nextNode3/Attributes/Attribute[ @name='visible'])" />
Regards