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

Re: Dump name and value of all input parameters to an

Subject: Re: Dump name and value of all input parameters to an output file
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Sep 2015 11:18:18 -0000
Re:  Dump name and value of all input parameters to an
You could do a transformation on the stylesheet to generate code which does
this: given the input

<xsl:param name=bxb/>
<xsl:param name=by/>

you could generate the output

<xsl:template name=bget-paramsb>
  <params x=b{$x}b y=b{$y}b/>
</xsl:template>

and then xs:include this into your stylesheet code.

Michael Kay
Saxonica


> On 10 Sep 2015, at 10:48, Jorge . chocolate.camera@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Is there a way to get the names and values of all parameters passed to
> an XSLT transformation? I would like to be able to dump all of them to
> a file during the transformation itself without having to hardcode
> their names in the XSL fragment that outputs the file.
>
> I am using Saxon-HE 9.2.1.2J and XSLT 2.0. I refer specifically to
> custom parameters passed to the stylesheet from the command-line like
> "FOO=bar" in:
>
> java -jar saxon9he.jar -xsl:transform.xsl -it:main 'FOO=bar'

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.