cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Kaushik" <>
Subject start and end of tag inti different tags
Date Mon, 11 Dec 2000 11:41:50 GMT

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> -->   

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

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


Any help regarding this will be appretiated.
Amit Kaushik

View raw message