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

Saxon command-line: How to assign a sequence of multip

Subject: Saxon command-line: How to assign a sequence of multiple strings to a global param
From: "Jorge . chocolate.camera@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Nov 2018 17:37:44 -0000
 Saxon command-line: How to assign a sequence of multip
Running Saxon from the command line (testing with Saxon-HE 9.2.1.2Jbyes,
old as heckbon Bash 3.2.57(1)), is there a way to set the value of a global
parameter of an XSLT2 stylesheet to a sequence of strings?

  <xsl:param name="MY_ARRAY" as="xs:string*"/>

When attempting to do it like this:

  java  -jar saxon9he.jar [options] 'MY_ARRAY="one" "two" "three"'
  java  -jar saxon9he.jar [options] MY_ARRAY='"one" "two" "three"'

Saxon seemingly interprets spaces as literal, and the value of the
parameter becomes one single string

  <xsl:message select="count($MY_ARRAY)"/>
b 1

instead of interpreting them as separators so that the value of the
parameter contains those three.

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.