This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: HTML tag inside <xsl:when></xsl:when> tag
- From: "Robert Koberg" <rob at koberg dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 20 Feb 2002 06:48:28 -0800
- Subject: Re: [xsl] HTML tag inside <xsl:when></xsl:when> tag
- References: <C15683AB8066D111A3CA00805FF9EB065C1F78@AGROSERVER>
- Reply-to: xsl-list at lists dot mulberrytech dot com
First, what are tryiung to achieve with this? Can it be handled this way:
<xsl:variable name="alignment">
<xsl:choose>
<xsl:when test="ss:Data/@ss:Type = 'Number'">
<xsl:text>right</xsl:text>
</xsl:when>
<!--snip-->
</xsl:choose>
</xsl:variable>
<td align="{$alignment}">
----- Original Message -----
From: "Matts Isuls" <matts.isuls@AGROLINK.FI>
To: <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, February 20, 2002 6:16 AM
Subject: [xsl] HTML tag inside <xsl:when></xsl:when> tag
> Hi
>
> How do i go about writing a HTML tag inside a xsl:when. Have tried three
> different ways:
>
> <xsl:choose>
> <xsl:when test="ss:Data/@ss:Type = 'Number'">
> <td align="right">
> </xsl:when>
> <!--snip-->
> </xsl:choose>
>
> ^-no go
>
> <xsl:choose>
> <xsl:when test="ss:Data/@ss:Type = 'Number'">
> <xsl:text><td align="right"></xsl:text>
> </xsl:when>
> <!--snip-->
> </xsl:choose>
>
> ^-still nothing
>
> <xsl:choose>
> <xsl:when test="ss:Data/@ss:Type = 'Number'">
> <td align="right">
> </xsl:when>
> <!--snip-->
> </xsl:choose>
>
> ^-hmmm now what?
>
>
> bye
> Matts Isuls
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list