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

RE: Re: whats the best way to create and use values fo

Subject: RE: Re: whats the best way to create and use values for lookup (key-value) such that you can loop through it with limits
From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Sep 2003 08:42:27 +0100
jim fuller houston

-----Original Message-----
From: SANWAL, ABHISHEK (HP-Houston) [mailto:abhishek.sanwal@xxxxxx]

Subject: RE:  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


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.