This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: On the XPath to my editor....


> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]