[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: HTML tag inside <xsl:when></xsl:when> tag

Subject: Re: HTML tag inside <xsl:when></xsl:when> tag
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Wed, 20 Feb 2002 06:48:28 -0800
snip tag html
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@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, February 20, 2002 6:16 AM
Subject:  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'">
>     &#60;td align="right"&#62;
>   </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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.