View Single Post
  #4 (permalink)  
Old February 28th, 2006, 02:48 PM
xaun xaun is offline
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For anyone who is interested the solution to my problem is as follows.

<xsl:choose>
                <xsl:when test="position() mod 4 = 0" >
                    <xsl:if test="(preceding-sibling::*[1]/Arg !='' and following-sibling::*[1]/Arg !='') or position()=last()">
                        <xsl:text disable-output-escaping="yes">
                            &lt;/tr&gt;&lt;tr&gt;
                        </xsl:text>
                    </xsl:if>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:if test="Arg =''" >
                        <xsl:text disable-output-escaping="yes">
                            &lt;/tr&gt;&lt;tr&gt;
                        </xsl:text>
                    </xsl:if>
                </xsl:otherwise>

            </xsl:choose>
            <xsl:choose>
                <xsl:when test="position() mod 4 = 0" >
                    <xsl:if test="position()+1=last()" >
                        <xsl:text disable-output-escaping="yes">
                            &lt;/tr&gt;&lt;tr&gt;
                        </xsl:text>
                    </xsl:if>
                </xsl:when>
            </xsl:choose>


Reply With Quote