Sorry, my bad. Shouldn't have used a $ in the name attribute of
xsl:variable..

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

*sigh*

Cheers

> -----Oorspronkelijk bericht-----
> Van: Geert Josten [mailto:[email protected]]
> Verzonden: donderdag 8 november 2012 9:31
> Aan: MarkLogic Developer Discussion
> Onderwerp: XSLT-QNAMELEXFORM: (err:XTSE0020) Invalid lexical form for
> QName
>
> 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