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

RE: xsl:param -- passing multiple values

Subject: RE: xsl:param -- passing multiple values
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 17 Jun 2004 22:47:36 +0100
multiple select values
This is easy in XSLT 2.0, you can pass a sequence:

  <xsl:with-param name="selection" select="1, 5, 7"/>

and you can select the values using

  select="@value = $selection"

which will match if @value is equal to any item in $selection.

Michael Kay 

> -----Original Message-----
> From: Westin, Ken [mailto:west7202@xxxxxxxxxxxx] 
> Sent: 17 June 2004 21:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl:param -- passing multiple values
> 
> Hello,
>  I was wondering if someone could help me out with a problem 
> I have run into. I have a form where I want a list of 
> products  listed that is generated from an xml file where I 
> pass the element position to a checkbox value, the user can 
> then check a box of 2-4 products, click submit and I then 
> want to pass the element positions as a xsl:parm to the the 
> stylesheet, so it will only show the 2-4 products the user 
> has selected. So I guess what I am looking for is something 
> like in SQL where you would write Select all where id 
> IN(1,4,6) etc....
>  
> I have checked the archives and did not see anything, any 
> assistance would be greatly appreciated. 
>  
> Thank You
>  
>  
> - Ken
> 
> --+------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 


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.