xsl-list
[Top] [All Lists]

Re: [xsl] Cannot process a result tree fragment as a node-set under XSLT 1.0 - The extension don´t function

2008-04-18 02:50:24
Hi David,

I probed your example and the error be continued,. Don´t 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(_at_)as-guides(_dot_)com
Recibido: 18/04/2008 10:38
Para: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Asunto: Re: [xsl] Cannot process a result tree fragment as a node-set 
under XSLT 1.0 - The extension don´t function

ALEXCONTINI(_at_)terra(_dot_)es schrieb:
Hi,

the extension don't function, what´s 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--






Ahora también puedes acceder a tu correo Terra desde el móvil.
Infórmate pinchando aquí.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--