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

(or) statement in setting node-set variable

Subject: (or) statement in setting node-set variable
From: "Keith" <keith@xxxxxxxxxxxxx>
Date: Fri, 5 Jan 2001 16:37:39 -0600
set variable from select statement
Afternoon all,
On several occasions I have established a variable by selecting a child
element with an OR statement,
(eg. <xsl:variable name="NAME" select="//merchantName|//pocName"/>)
this way I can reuse the xsl in different contexts.
I have also used
<xsl:param name="someXML-rtf"/>
with
 <xsl:variable name="someName"
select="msxsl:node-set($someXML-rtf)//someElement"/>
what I am wondering is if it is possible to combine the two?
I am reusing a GetReportsList() function to append a parameter of
'ReportList-rtf' to a Point of Contact xsl sheet
When I call the parameter I need to set the variable node-set depending on
what the JavaScript function has sent to the page.
it can be
	<xsl:variable name="ReportList"
select="msxsl:node-set($ReportList-rtf)//GetMerchantReportList"/>
or
	 <xsl:variable name="ReportList"
select="msxsl:node-set($ReportList-rtf)//GetLocationReportList"/>

can this be combined into:
	<xsl:variable name="ReportList"
select="msxsl:node-set($ReportList-rtf)//GetMerchantReportList|($ReportList-
rtf)//GetLoctaionReportList"/> ?? (or some syntax variation of?)

maybe-
<xsl:variable name="ReportList"
select="msxsl:node-set($ReportList-rtf)//GetMerchantReportList|msxsl:node-se
t($ReportList-rtf)//GetLoctaionReportList"/> ??

any ideas will be appreciated, and thanks for all the great dialogue that
only the xslt list can supply!

Keith Brooks
Software Developer
Global eTelecom
Keith@xxxxxxxxxxxxxxxxxx


 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.