[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to conditionally insert begnining and ending t
> The code I wanted to do is like follows: > > <xsl:if test="variable='A'"> > <tr> > </xsl:if> > <td> > (any code) > </td> > <xsl:if test="variable='A'"> > </tr> > </xsl:if> > > This is not accepted of course. Is there any way to acomplish this? <xsl:variable name="common"> <td>(any code)</td> </xsl:variable> <xsl:choose> <xsl:when test="variable='A'"> <tr><xsl:copy-of select="$common"/></tr> </xsl:when> <xsl:otherwise> <xsl:copy-of select="$common"/> </xsl:otherwise> </xsl:choose> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|