xsl-list
[Top] [All Lists]

RE: Saxon versus Xalan implementations of evaluate() extension function?

2005-07-07 14:04:52
Michael:

Saxon 8.x does too much optimization to be able to guarantee that variables
declared in the stylesheet actually exist as such at run-time (for example,
variables that are never referenced are ignored completely). So I decided to
disallow direct access to variables in saxon:evaluate(). Instead, you can
pass parameters $p1..p9 to the query, e.g.

saxon:evaluate("$p1 + 3", $x)

returns 5 if $x is initialized to 2.

Will it work if you do something like this:

   saxon:evaluate("$p1/node1/node2", $x) where $x is a node set?

ie. Will it look for node1/node2 in the node set contained in $x?

Thanks!


....Andrzej

Chaeron Corporation
http://www.chaeron.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>
--~--