This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
(or) statement in setting node-set variable
- To: "Xsl-List \(E-mail 2\)" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] (or) statement in setting node-set variable
- From: "Keith" <keith at brooksweb dot com>
- Date: Fri, 5 Jan 2001 16:37:39 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
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