You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by sc...@us.ibm.com on 2002/01/02 16:24:58 UTC

Re: paramaters in templates

This is a significant problem with the javax.xml.transform API, which, as
one of the main designers of that API, I regret deeply.  It will certainly
come in the next version of these APIs.

If you want to go past javax.xml.transform, cast the Templates object to a
org.apache.xalan.templates.StylesheetRoot object, then get the
getVariablesAndParamsComposed() object, which is a Vector of ElemVariable
object.  You can test each ElemVariable to see if it's a param by calling
it's getXSLToken() to see if it returns Constants.ELEMNAME_PARAMVARIABLE.
You can then call getName(), getSelect(), etc.

-scott




                                                                                                              
                    Joseph                                                                                    
                    Shraibman            To:     xalan-j-users@xml.apache.org                                 
                    <jks@selectaca       cc:     (bcc: Scott Boag/CAM/Lotus)                                  
                    st.net>              Subject:     paramaters in templates                                 
                                                                                                              
                    12/26/2001                                                                                
                    09:09 PM                                                                                  
                                                                                                              
                                                                                                              




Is there any way to get a list of paramaters that a Templates or a
Transformer uses?
There doesn't seem to be one.  If there isn't is it planned for the future?


--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://xis.xtenit.com