This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: On the XPath to my editor....
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>, "'Mark R. Diggory'" <mdiggory at latte dot harvard dot edu>
- Date: Mon, 20 May 2002 08:55:35 +0100
- Subject: RE: [xsl] On the XPath to my editor....
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> Yes, but this is the only way to do it in XSLT 1.0. In XSLT
> 2.0, due to general steps in XPath 2.0, we'll be able to do:
>
> $schema/saxon:evaluate($xsd-path)
>
> which has the advantage that the results of the evaluated
> path will be unioned together, so even if there's more than
> one node being held by the $schema variable, but they're all
> in the same document, you'll only get one of each within the sequence.
>
> The other method that you could try is:
>
> saxon:evaluate(concat('$schema', $xsd-path))
>
> or, if that doesn't work (I can't remember whether Saxon
> allows variables within saxon:evaluate() or not)...
It is allowed and it should work.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list