This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Looping through parameters
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Looping through parameters
- From: "Iain W Fergusson" <fergusson_iain at jpmorgan dot com>
- Date: Thu, 31 May 2001 12:55:57 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Duncan,
If you put your parameters into an XML file, e.g.
<parameterList>
<param1>...</param1>
<param2>...</param2>
</parameterList>
you can pass the name of the parameter file, rather than the individual
parameters, to your stylesheet.
Then open the parameter file with document() and select each child of
parameterList.
Regards,
Iain
duncan.hull@csw.co.uk on 31/05/2001 11:50:45
Please respond to xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
cc: (bcc: Iain W Fergusson)
Subject: [xsl] Looping through parameters
Dear XSL-listers
Is there an XPath expression that will allow me to generically refer to one or
more parameters passed externally into a stylesheet? e.g.
<xsl:for-each select="external-parameter-passed-in">
do something with each parameter
</xsl:for-each>
I want to be able to handle the parameters generically, rather than by each
parameter name as shown below which repeats the code <!--stuff-->
.
<!--check to see that param1 is not null-->
<xsl:if test="$param1!=''">
<!--stuff-->
</xsl:if>
<xsl:if test="$param2!=''">
<!--stuff-->
</xsl:if>
<xsl:if test="$param3!=''">
<!--stuff-->
</xsl:if>
etc
Duncan
***********************************************
CSW Informatics Ltd
4240 Nash Court, Oxford Business Park South, Oxford, OX4 2RU
Tel: +44/0 1865 337400 Fax: +44/0 1865 337433
Web: http://www.cswinformatics.com
"CSW Informatics delivers high quality consultancy and
training services, to assist our customers in meeting their
requirements for innovative information management
solutions using the most appropriate technologies,
products and software systems"
----------------------------------------------
CSW's XML SUMMER SCHOOL 20th - 25th July 2001
St. Anne's College, OXFORD
SIGN UP NOW: http://www.xmlsummerschool.com
----------------------------------------------
Legal Disclaimer: http://www.csw.co.uk/disclaimer.htm
***********************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
This communication is for informational purposes only. It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list