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

xsl:param

Subject: xsl:param
From: James Cummings <James.Cummings@xxxxxxxxx>
Date: Fri, 6 Jun 2003 12:34:10 +0100 (BST)
 xsl:param
Is there a way to declare an xsl:param based on the name of the parameter
passed to it?

I.e.  if we are passing foo=1 and bar=2 to the stylesheet we would
usually do something like:
<xsl:param name="foo">default</xsl:param>
<xsl:param name="bar">default</xsl:param>

Let's say you are passing a large number of parameters, and you
can't know in advance (for some hypothetical reason) what
their names are going to be.

Is there a way to do something like:
<xsl:param name="*">default for everything</xsl:param>

And if you passed a parameter of foo=1, then it would create
the xsl:param $foo with value 1, and if you also passed it
blort=wibble it would also create $blort equaling wibble.
Is it then possible to test for the existence (or lack) of
that parameter?

I realise it is a silly (and hypothetical) question, but
one of those things that occured to me (will still looking
at that merging readings problem from several days back).

-James

-- 
Dr James Cummings, James.Cummings@xxxxxxxxx, http://www.uea.ac.uk/~q503
Cursus Project, School of Music, University of East Anglia,
Norwich, Norfolk, NR4 7TJ, UK  Tel:(01603)593-595



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • xsl:param
    • James Cummings - Fri, 6 Jun 2003 07:34:50 -0400 (EDT) <=

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.