[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Fwd: [exslt] param problem

Subject: Fwd: [exslt] param problem
From: xptm@xxxxxxx
Date: Fri, 2 Jul 2004 12:04:26 +0100
param. problem
Hello:

Please forgive me for posting this in this list, but i got no answer from the
[exslt] list so i think maybe in here can help.


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
list@xxxxxxxxx
http://www.exslt.org/list


----- Finalizar mensagem reenviada -----







O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.