> Just a quick question, is an XMLFilter basically a Transformer ?

Yes.  An XMLFilter is something that pulls from a parent XMLReader.  It is
a way to set up pipelines of processors where you start the process on the
right-most pipeline component, rather than the left-most.  It is a very
cool way to pass around a XMLReader that might be simply a parser, or it
might be a full multi-pipe transformation.

Please see org.apache.xalan.transformer.TrAXFilter for our implementation
of XMLFilter.

-scott




                                                                                       
                            
                    "G. Todd                                                           
                            
                    Miller - XML         To:     [EMAIL PROTECTED]              
                            
                    Tech Ctr -           cc:     [EMAIL PROTECTED], (bcc: Scott 
Boag/CAM/Lotus)              
                    Development"         Subject:     JAXP Question...XMLFilters vs 
Transformers                   
                    <Glenn.Miller                                                      
                            
                    @Sun.COM>                                                          
                            
                                                                                       
                            
                    06/15/01                                                           
                            
                    11:00 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    xalan-dev                                                          
                            
                                                                                       
                            
                                                                                       
                            





JAXP Experts,

Just a quick question, is an XMLFilter basically a Transformer ?
After looking at samples of code that use these things, it seems
like this is the case.  For example, the UseXMLFilter.java sample
in the distro chains together 3 XMLFilters, each of them are created
from a stylesheet (like a Transformer), so flow might be modeled as:

                              foo1.xsl         foo2.xsl
                                 |               |
                                 v               v
foo.xml --> [XMLReader] --> [xmlFilter1] --> [xmlFilter2] --> ... -->
[Serialzr]


Part of the confusion
I'm having comes from the javadoc, where you find out that
an XMLFilter extends XMLReader. So XMLFilters are really XML Reader
that can carry out transformations?  I'm going around in circles here-
any help would be greatly appreciated.

Thanks in advance,

Todd

=======================================================================
G. Todd Miller                        Sun Microsystems Computer Company
Software Systems Engineer             2 Network Drive, MS UBUR02-201
GE&IS XML Tech Center                 Burlington, MA 01803-0903
                                      781 442-0176
                                      781 442-1437 (fax)
                                      [EMAIL PROTECTED]





Reply via email to