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
