[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Looping through parameters

Subject: Re: Looping through parameters
From: "Iain W Fergusson" <fergusson_iain@xxxxxxxxxxxx>
Date: Thu, 31 May 2001 12:55:57 +0100
looping through xml file
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@xxxxxxxxx on 31/05/2001 11:50:45

Please respond to xsl-list@xxxxxxxxxxxxxxxxxxxxxx

To:   xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc:   (bcc: Iain W Fergusson)
Subject:   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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.