[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] (or) statement in setting node-set variable
Subject: [xsl] (or) statement in setting node-set variable From: "Keith" <keith@xxxxxxxxxxxxx> Date: Fri, 5 Jan 2001 16:37:39 -0600 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:when - comparing para, Kay Michael | Thread | Re: [xsl] (or) statement in setting, Mike Brown |
[xsl] xsl:when - comparing paramete, RUSSO, EDITH | Date | RE: [xsl] xsl:when - comparing para, Keith |
Month |