|
Subject: RE: [xsl] On the XPath to my editor.... From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Mon, 20 May 2002 08:55:35 +0100 |
>
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] On the XPath to my editor, Jeni Tennison | Thread | [xsl] template precedence problem, Ben Leighton |
| RE: [xsl] URL encoding, Michael Kay | Date | RE: [xsl] Using regular expressions, Michael Kay |
| Month |