xsl-list
[Top] [All Lists]

RE: xsl:param -- passing multiple values

2004-06-17 15:45:30
Thanks Michael,
 
Unfortunatly the processor I am using (or I should say my company uses)  is 
Oracle which it looks like only supports XSLT 1.0. If this is possible with 
XSLT 1.0 can someone point me towards some samples if there are any...I am 
pretty new to XSLT, I love it so far, but the learning curve is pretty tough. 
If I can get this sucker to work, I think I can get my work to let me use it on 
more projects. 
 
Thanks
- Ken

________________________________

From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk]
Sent: Thu 6/17/2004 2:47 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] xsl:param -- passing multiple 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(_at_)pacificu(_dot_)edu]
Sent: 17 June 2004 21:20
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



--+------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--