This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(or) statement in setting node-set variable


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@GlobaleTelecom.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]