Hi Mary,
Thank you, using xdmp:dialect="3.0" indeed works!
But it seems to have also the side-effect to apply the default namespace in
scope to match patterns. So if you have, say, the HTML namespace declared
as the default namespace (which is almost required to generate HTML
properly), then the following will match elements named `elem` in the HTML
namespace, instead of in no namespace:
<xsl:template match="elem">
Do you want me to work out a repro?
Regards,
--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
On 7 March 2016 at 16:33, Mary Holstege wrote:
>
>
> XPath in an XSLT 2.0 context in MarkLogic uses strict 2.0 conformance mode
> (same as if you declare the XQuery version as 1.0).
>
> There is a hook to use different dialects instead and these have the same
> impact on XPath in XSLT as they do on XPath in XQuery.
>
> Add the attribute xdmp:dialect e.g.
>
> <xsl:stylesteet xdmp:dialect="1.0-ml"....
>
>
> //Mary
>
> On Sun, 06 Mar 2016 02:34:50 -0800, Florent Georges wrote:
>
> > Hi,
> >
> > If I try to use the XPath 3.0 mapping operator `!` or the concat operator
> > `||`,
> > MarkLogic throws an error:
> >
> > XDMP-EXTENSION: (err:XPST0003) MarkLogic extension syntax used,
> > simple
> > mapping expressions are not supported in XSLT mode
> >
> > But they are not MarkLogic extensions, they are standard XPath operators
> > (but
> > in version 3.0, rather than in version 2.0 supported by XSLT 2.0,
> > supported
> > by
> > MarkLogic.) At least in forward compatibility mode, I think they should
> > be
> > "unlocked".
> >
> > Well, at least if it is only a matter of "unlocking" them. I assume they
> > have
> > been disabled from XSLT, even although their implementation in XQuery
> > can be
> > reused as is, but maybe there is an more profound reason why they were
> > disabled
> > in the first place.
> >
> > Regards,
> >
>
>
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general