W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2005

RE: [F&O] Casting to xs:NOTATION, xs:QName not clarified

From: Michael Kay <mhk@mhk.me.uk>
Date: Tue, 18 Jan 2005 10:11:11 -0000
To: "'Laurens Holst'" <lholst@students.cs.uu.nl>, <public-qt-comments@w3.org>
Message-ID: <E1CqqS2-0004YD-Vh@frink.w3.org>

> That aside, a quick question... I have been looking at the spec for a 
> little while to find a way to resolve an xs:string, 
> containing an XPath 
> query, to a nodeset... Does anyone know how to achieve that? :)

Dynamic XPath evaluation isn't offered in either XSLT or XQuery.

Many XSLT processors and some XQuery processors offer an extension for this:
see dyn:evaluate() in the EXSLT library (www.exslt.org)

The complications are primarily to do with establishing a static and dynamic
context for the evaluation. Saxon has two variants of the function, one
designed for dynamically-constructed expressions, one designed for
expressions read from a source XML document: the context rules for the two
cases are different.

Michael Kay
Received on Tuesday, 18 January 2005 10:50:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:03 UTC