We are working on this kind of thing.  Take a look at the WalkerFactory in
the org.apache.xpath.axes package, if you like.  But I would wait a while
until we get the Abstract Syntax Tree (AST) work done that we are just
starting.

-scott




                                                                                       
                            
                    "Nikolaos                                                          
                            
                    Giannadakis"         To:     <[EMAIL PROTECTED]>            
                            
                    <[EMAIL PROTECTED]        cc:     (bcc: Scott Boag/CAM/Lotus)           
                            
                    .ac.uk>              Subject:     xpath (simple) rewriting         
                            
                                                                                       
                            
                    06/23/2001                                                         
                            
                    01:11 PM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    xalan-dev                                                          
                            
                                                                                       
                            
                                                                                       
                            





Dear all,

Can I use anything in org.apache.xpath to get some simplification of simple
xpath expressions? Expression evaluation is not an issue.

i.e.

/A/C | /A/C/descendant::C

would rewrite to

/A/descendant::C

regards,

nikolaos giannadakis/





Reply via email to