The "return type" of a template has to be one of the XPath/XSLT data types,
period.  Otherwise, the processor would be seriously confused trying to
generate the result tree.

An extension function returns a value, but a template's only "return value"
is the possible generation of nodes in the result tree.

Dave



                                                                                
                              
                      Brad Cox                                                  
                              
                      <[EMAIL PROTECTED]         To:      "Joseph 
Kesselman/CAM/Lotus"                          
                      ool.edu>                 <[EMAIL PROTECTED]>              
                    
                                               cc:      [EMAIL PROTECTED], 
(bcc: David N           
                      03/07/2002 07:47         Bertoni/Cambridge/IBM)           
                              
                      AM                       Subject: Re: Extension: how to 
return java values from         
                                               templates?                       
                              
                                                                                
                              



At 9:48 AM -0500 3/7/02, Joseph Kesselman/CAM/Lotus wrote:
>See http://xml.apache.org/xalan-j/extensions.html#ext-functions,
>specifically the "Return values" section which describes how an extension
>function's return value is processed by Xalan.

I've read it. Repeatedly. But it doesn't address the question, which
is that variable assignments work "properly", retaining their java
type, whereas template calls convert the return type to #NODESET or
similar. The question was how to make template calls work "properly"
from java's point of view.
--
Brad Cox, PhD; [EMAIL PROTECTED] 703 361 4751
o For industrial age goods there were checks and credit cards.
    For everything else there is http://virtualschool.edu/mybank
o Java Interactive Learning Environment http://virtualschool.edu/jile
o Java Web Application Architecture: http://virtualschool.edu/jwaa






Reply via email to