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

Re: Trying to learn XSL

Subject: Re: Trying to learn XSL
From: "anoop" <anoop.agrawal@xxxxxxxxxxxxxxxx>
Date: Fri, 25 Feb 2000 15:29:57 +0530
xsl when expr
hi juergen
i had a doubt
DO xsl:variable WORK FINE WITH IE5 OR WE HAVE TO DO SOME MODIFICATION?

anoop

----- Original Message -----
From: Juergen Hermann <jhe@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Friday, February 25, 2000 9:59 AM
Subject: Re: Trying to learn XSL


> On Thu, 24 Feb 2000 18:04:39 -0600, Tucker Williams wrote:
>
> >I'm wondering if I need a function to do this, something like:
> >
> ><xsl:choose>
> > <xsl:when expr="[position() mod 2] =1">
> > some html
> > </xsl:when>
> > <xsl:when expr="[position() mod 2] =0">
> > some html
> > </xsl:when>
> ></xsl:choose>
>
> This is exactly what you need. One modification though, define a variable
for
> the color using <xsl:variable> and use that variable AFTER the choose.
>
> Why? You cannot just emit the font, td or whatever tag containing the
color
> WITHIN the whens, since that would not be well-formed XML.
>
>
>
> Ciao, Jürgen
>
> --
> Jürgen Hermann (jhe@xxxxxxxxxxx)
> WEB.DE AG, Amalienbadstr.41, D-76227 Karlsruhe
> Tel.: 0721/94329-0, Fax: 0721/94329-22
>
>
>
>  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.