You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Amit Kaushik <sm...@yahoo.co.uk> on 2000/12/11 12:41:50 UTC

start and end of tag inti different tags

Hi,

In my XSL file i want to open a tag in one <xsl:if> tag and close it to another <xsl:if>.How can we do this.

Here is the code.......

  <xsl:if test="position() mod 2 != 0">

<!-- WANT TO ADD OPENING TAG HERE  like for open a table row <tr> -->   

   <td>
   <xsl:apply-templates select="headline"/>
   </td>
  </xsl:if>
 
 <xsl:if test="position() mod 2 = 0">
   <td>
   <xsl:apply-templates select="headline"/>
   </td>

<!-- WANT TO ADD END TAG HERE  like for ending of table row </tr>-->   

 </xsl:if>

Any help regarding this will be appretiated.
Amit Kaushik