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

RE: Convert paramter to a sequence

Subject: RE: Convert paramter to a sequence
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 17 Feb 2006 10:04:51 -0000
xml convert sequence to array
> > Pass the parameter as the Xpath value "(1, 2, 3)".
> 
> If the system allows xpath expressions to be specified externally.
> Unless I've missed something, saxon (for example) only allows (on the
> command line) parameters to be specified by a string value or be
> specified as a document node by passing in a file name/uri.

Yes. Some products allow you to specify an XPath expression as the parameter
value. With Saxon you always pass a value, not an expression. If you use the
command line, the parameter is interpreted as an untypedAtomic literal and
is cast to the required type; but you can't cast from untypedAtomic to a
sequence of integers. You can supply a sequence of integers (as an array or
a List) if you're using the Java API.

Michael Kay
http://www.saxonica.com/

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.