Closed martin-honnen closed 5 years ago
Good point; I'll update the code.
New NuGet will be ready in some time...
I can confirm that with the latest update of the XPath2 lib (1.0.8) the string()
syntax works as expected
Good to hear. Thanks for finding this issue.
https://www.w3.org/TR/2007/REC-xpath-functions-20070123/#func-string for XPath 2.0 defines a zero argument version of the
string
function but trying to use it with XPath2 in the last step of a path (e.g./root/item/string()
) fails withAdding
in
FunctionTable.cs
inside of theprivate FunctionTable()
constructor code seems to fix that problem and doesn't seem to cause any of the XQTS test cases to fail that work with XPath2 without that change.I also tried two test cases that don't work with the current XPath2 but work after above fix: