> I'm just new to Xalan. I'd like to ask a few questions about XPath
> 1.  Does the current implementation of XPath module have the validation
> test ie test to see the XPath expression is a valid expression or not?

It throws an exception if the expression is not valid.

> 2. If the XPath expression addresses the node that is not included in
> the XML input, what will it return?

Null or an empty nodelist or a iterator that will return null for nextNode,
depending on which method you call.

> 3. Is it possible for me to access any location step in an XPath
> expression?

You mean, in the expression itself?  It is possible, but not a great idea,
since the op-map currently built by Xalan will be replaced pretty soon by
an AST tree.

Or in the execution tree?  What is it that you want to do?

-scott




                                                                                
                                          
                    Son Truong                                                  
                                          
                    <[EMAIL PROTECTED]       To:     Xalan-J-Users <[EMAIL 
PROTECTED]>                      
                    on.com.au>                  cc:     (bcc: Scott 
Boag/CAM/Lotus)                                       
                                                Subject:     Newbie questions 
about XPath                                 
                    11/19/2001 09:35 PM                                         
                                          
                                                                                
                                          
                                                                                
                                          




Hi All,

I'm just new to Xalan. I'd like to ask a few questions about XPath
1.  Does the current implementation of XPath module have the validation
test ie test to see the XPath expression is a valid expression or not?
2. If the XPath expression addresses the node that is not included in
the XML input, what will it return?
3. Is it possible for me to access any location step in an XPath
expression? If yes, how can i do it? A sort sample code would be greatly
appreciated.

Thanks in advance.
--
Son Truong, Software Engineer
Canon Information Systems Research Australia Pty Ltd (CISRA),
Phone: (W) +61-2-9805-2699
Fax: +61-2-9805-2929
Address: 1 Thomas Holt Drive, North Ryde, Sydney, NSW 2113 Australia.
"Copy from one, it's plagiarism; copy from two, it's research" Wilson
Mizner (1876-1933)






Reply via email to