[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

=?UTF-8?Q?Re:_[xsl]_Cannot_process_a_result_tree_fragment_as_a_?= =?UTF-8?Q?node-set_under_XSLT_1.0_-_The_extension_don=C2=B4t_function?=


Subject: Re: [xsl] Cannot process a result tree fragment as a node-set under XSLT 1.0 - The extension don´t function
From: "ALEXCONTINI@xxxxxxxx" <ALEXCONTINI@xxxxxxxx>
Date: Fri, 18 Apr 2008 11:21:49 +0200 (MEST)

Hi David,

I probed your example and the error be continued,. DonB4t give error,
but the page is in blank.

The processor is Apache Software Foundation, i think that is Cocoon

Any suggestion?

Thanks you,
Alexander



----Mensaje original----
De: mlu@xxxxxxxxxxxxx
Recibido: 18/04/2008 10:38
Para: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Asunto: Re: [xsl] Cannot process a result tree fragment as a node-set
under XSLT 1.0 - The extension donB4t function

ALEXCONTINI@xxxxxxxx schrieb:
> Hi,
>
> the extension don't function, whatB4s up?

Try and build a *minimal* example using just one RTF variable, one
template and the exsl:node-set() function. If it still doesn't work,
post your minimal example together with the precise error message your
processor gives you, and the name of your processor, too.

Okay, try the following minimal example:

<xsl:transform version="1.0"
   xmlns:exsl="http://exslt.org/common"
   extension-element-prefixes="exsl"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:variable name="filtro">
     <Elm/>
     <Elm/>
   </xsl:variable>
   <xsl:template match="/">
     <xsl:comment>
       <xsl:value-of select="system-property('xsl:vendor')"/>
     </xsl:comment>
     <xsl:variable name="total" select="count(exsl:node-set($filtro)
/Elm)"/>
     <Res>
       <xsl:copy-of select="$total"/>
     </Res>
   </xsl:template>
</xsl:transform>

The output should be:

<!--name of you processor-->
<Res>2</Res>

Michael






Ahora tambiC)n puedes acceder a tu correo Terra desde el mC3vil.
InfC3rmate pinchando aquC-.


Current Thread
Keywords