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:     [EMAIL PROTECTED]              
                   
                    <[EMAIL PROTECTED]       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
[email protected]
Increase signal to noise ratio.  http://xis.xtenit.com





Reply via email to