Re:param problem

[email protected]
Newsgroups gmane.text.xml.xsl.general.mulberrytech,gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
It seems there is some kind of conflict between the params in

<xsl:param name="sqlvars" select="'default'" />

and

   <func:function name="gti:facton">
     <xsl:param name="val"/>
     <func:result select="round($val div 14)"/>
   </func:function>

that are both define at the top element, but why? I've try to put both
declarations on different places but nothing works...


Citando xptm <[email protected]>:

> Hello:
>
> I have a xsl using exslt.org/functions
>
> <?xml version="1.0" encoding="ISO8859-1" ?>
> <xsl:stylesheet version="2.0"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>     xmlns:func="http://exslt.org/functions"
>     xmlns:gti="http://www.gtinformatica.pt">
>
>   <func:function name="gti:facton">
>     <xsl:param name="val"/>
>     <func:result select="round($val div 14)"/>
>   </func:function>
>
> </xsl:stylesheet>
>
> wich i'm importing into another
>
> <?xml version="1.0" encoding="ISO8859-1" ?>
> <xsl:transform version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>   <xsl:output method="xml" version="1.0" encoding="iso-8859-1"
> indent="yes"/>
>   <!-- Funções -->
>   <xsl:include href="xfunctions.xsl" />
>   (...more stuff...)
>
> No i want to pass a parameter from a Java program to this XSLT, so i have
>
> <?xml version="1.0" encoding="ISO8859-1" ?>
> <xsl:transform version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>   <xsl:output method="xml" version="1.0" encoding="iso-8859-1"
> indent="yes"/>
>
>  <xsl:param name="sqlvars" select="'default'" />
>
>   <!-- Funções -->
>   <xsl:include href="xfunctions.xsl" />
>   (...more stuff...)
>
> but i allways get this error:
>
> javax.xml.transform.TransformerException:
> javax.xml.transform.TransformerException: An EXSLT function cannot set
> more than one result!
>
> What is going on? I use Xalan Java 2.4.1
>
> _______________________________________________
> exslt mailing list
> [email protected]
> http://www.exslt.org/list
>







O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.