I'm new to Marklogic XSLT transformations and I have the below questions.
What XSLT engine does Marklogic use to transform document using xdmp:xslt-invoke() function?Is there a way that we can support XSLT 3.0 version in Marklogic?
I'm trying to use XSLT 3.0 version that has the below variable for transformation
<xsl:variable name="format-map" as="map(xs:string,xs:string)">
and I'm getting below error when using xdmp:xslt-invoke() function in Marklogic
XSLT-BADSEQTYPE: (err:XTSE0020) /*:stylesheet/*:variable[1] -- Invalid sequence type: /*:stylesheet/*:variable[1]/@as (XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Lpar_, expecting $end)
Please let me know how to resolve this
xdmp:dialect="1.0-ml"on the root element of the stylesheet, that way you might be able to use the map extension they provide, which is not the one specified by the W3C, however. - Martin Honnenas="map(xs:string,xs:string)"is going to work, it is more like<xsl:variable name="map" select="map:new() => map:with('foo', 'bar')"/>and then you can use<xsl:value-of select="map:get($map, 'foo')"/>. And I think you need to declarexmlns:map="http://marklogic.com/xdmp/map". I don't have access to Marklogic currently so you might want to experiment on your own or wait until you get an answer from someone with more insight. - Martin Honnen