xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Voytenko, Dimitry" <dvoyte...@reveredata.com>
Subject RE: exslt extention
Date Mon, 12 May 2003 16:39:42 GMT
Hi Andrey,

func:param is not allowed inside of func:function element. It's considered
as literal result element in this case. Use xsl:param instead (in the XSLT
namespace).
For the rest of features see:
http://www.exslt.org/func/elements/function/index.html

Thanks,
Dimitry

-----Original Message-----
From: Andrey Solonchuk [mailto:solo@ibis.odessa.ua]
Sent: Saturday, May 10, 2003 05:16
To: xalan-j-users@xml.apache.org
Subject: exslt extention


Hello xalan-j-users,

  hi! if somebody have worked with exslt extention

  i have an error misplaced literal result in a func:function container
  in following stylesheet , and didnt understood why
  I use xalan 2.4.1

<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:func="http://exslt.org/functions"
    xmlns:my="http://my"
    version="1.0" 
    >
<xsl:output method="text" encoding="Windows-1251"/>

<func:function name="my:test">
 <func:param name="a"/>
 <func:result select="$a"/>
</func:function>

<xsl:template match="/">
------&#10;
 <xsl:for-each select="//data">
     <xsl:value-of select="my:test(.)"/>
 </xsl:for-each>

</xsl:template>
</xsl:stylesheet>


-- 
Best regards,
 Andrey                          mailto:solo@ibis.odessa.ua


Mime
View raw message