Oh I see, didn't catch this one.  So the value is a QName resolved in the 
context of the element it is a value of.  Makes sense.  This case (using the 
default namespace for xdmp:eval) should probably be in the documentation?

  Thank you!

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/




>________________________________
> De : Mary Holstege <[email protected]>
>À : Florent Georges <[email protected]>; MarkLogic Developer Discussion 
><[email protected]> 
>Envoyé le : Samedi 10 novembre 2012 18h33
>Objet : Re: [MarkLogic Dev General] XSLT initial template in no namespace
> 
>On Sat, 10 Nov 2012 08:45:28 -0800, Florent Georges <[email protected]> wrote:
>
>>   Hi,
>>
>>   Nothing blocking me (I use a namespace anyway), just felt I had
>> to report this.  When I run the following standalone query:
>>
>>     xquery version "3.0";
>>     declare namespace xdmp = "http://marklogic.com/xdmp";;
>>
>>     xdmp:xslt-eval(
>>       <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>>                       version="2.0">
>>         <xsl:template name="main">
>>           <hello>World!</hello>
>>         </xsl:template>
>>       </xsl:stylesheet>,
>>       (),
>>       (),
>>       <options xmlns="xdmp:eval">
>>         <template>main</template>
>>       </options>)
>>
>> I get the following error:
>>
>>     [XSLT] XSLT-INITTEMPLATE: (err:XTDE0040) Starting template
>>     name not found: main
>>
>>   Unless I missed something, I didn't see anything in the
>> documentation regarding this.
>>
>
>The issue is the xmlns="xdmp:eval" on your options node.
>It is getting applied to the QName "main" in <template>
>as well.  If you write your options node with a prefix
>it will work:
>
><o:options xmlns:o="xdmp:eval"><o:template>main</o:template></o:options>
>
>//Mary
>
>
>
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to