|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] (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@xxxxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








