-----Original Message-----
From: SANWAL, ABHISHEK (HP-Houston)
[mailto:abhishek(_dot_)sanwal(_at_)hp(_dot_)com]
Subject: RE: [xsl] Re: whats the best way to create and use values for
lookup (key-value) such that you can loop through it with limits
Another way, I saw somewhere (don't remember) was kind of like this:
<xsl:variable name=ColValue select=..expression..>
< if....
< if..
< when .. expr
</xsl:variable>
-----Original Message-----
sorry, the rest of the message was confusing, i am going to do some
cyrptoanalysis of just this part of your email
you need to use valid XSLT, this snippet breaks many rules;
- Variable or parameter 'ColValue' cannot have both a select attribute and
non-empty content.
- you need to quote all attributes
- yes you can nest statements inside an xsl:variable, which will generate a
value e.g.
<xsl:variable name="ColValue">
some value
</xsl:variable>
can just as easily be the result of processing
<xsl:variable name="ColValue">
<xsl:apply-templates select="someelement"/>
<xsl:if test="not(someelement)">include my data as well</xsl:if>
</xsl:variable>
and so on....
gl, jim fuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list