XPath 3.1 map and array support in Schematron with queryBinding="xslt3"

Are you missing a feature? Request its implementation here.
Martin Honnen
Posts: 96
Joined: Tue Aug 19, 2014 12:04 pm

XPath 3.1 map and array support in Schematron with queryBinding="xslt3"

Post by Martin Honnen »

When using Schematron with `queryBinding="xslt3"` and namespace declarations like `<sch:ns prefix="map" uri="http://www.w3.org/2005/xpath-functions/map"/>` I would like to see content completion for functions from that namespace like `map:merge`, `map:keys`. The same for the XPath 3.1 array functions.
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"

Post by tavy »

Hello Martin,

In to see the functions in the content completion list you need to declare the namespace also on the Schematron root element. Something like this:

Code: Select all

<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt3"
    xmlns:array="http://www.w3.org/2005/xpath-functions/array"
    xmlns:map="http://www.w3.org/2005/xpath-functions/map">
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Martin Honnen
Posts: 96
Joined: Tue Aug 19, 2014 12:04 pm

Re: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"

Post by Martin Honnen »

Ah, I first had them declared on the root element but then found that Schematron needs the `ns` element, then I thought the namespace declaration would no longer be needed. So I need both to have the Schematron compiler happy and my failing memory happy to work with content completion.

Thanks.
Post Reply