Hi,

Am I doing something obvious wrong or is this a bug? The following code
throws this message:

XSLT-QNAMELEXFORM: (err:XTSE0020) Invalid lexical form for QName

xquery version "1.0-ml";

declare namespace test = "test";

let $params := map:map()
let $add := map:put($params, xdmp:key-from-QName(xs:QName("test:param")),
<test:param/>)
return xdmp:xslt-eval(
        <xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:test="test">

                <xsl:param name="test:param" />

                <xsl:variable name="$main-input" select="/" />

                <xsl:template
match="@*|comment()|processing-instruction()" mode="#all">
                        <xsl:copy-of select="."/>
                </xsl:template>

                <xsl:template match="*" mode="#all">
                        <xsl:copy>
                                <xsl:apply-templates select="@*|node()"
mode="#current"/>
                        </xsl:copy>
                </xsl:template>

        </xsl:stylesheet>,
        <test/>,
        $params
)

Any workarounds other than injecting the XML inside the XSLT from XQuery?

Kind regards,
Geert

M.Sc. G.P.H. (Geert) Josten
Senior Developer


Dayon B.V.
Delftechpark 37b
2628 XJ Delft
The Netherlands

T +31 (0)88 26 82 570

[email protected]
www.dayon.nl

De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan
dit bericht kunnen geen rechten worden ontleend.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to