xsl-list
[Top] [All Lists]

RE: Convert paramter to a sequence

2006-02-17 03:04:51
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>