DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20492>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20492

Problems with XPath expression //* (incorrect result and does not function after 
Templates object is serialized)

           Summary: Problems with XPath expression //* (incorrect result and
                    does not function after Templates object is serialized)
           Product: XalanJ2
           Version: 2.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.serialize
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I'll attach a test case (XML and XSL).  Run the test case once creating a
Templates from the factory, then serialize and deserialize the Templates object
and run again.  The results are not the same.  The deserialized object will not
evaluate the //* expression properly.  There may be other cases but this is the
only one I could find.

The issues are:

1.  Aren't descendent-or-self:: and // supposed to be identical?
2.  Even if 1 is wrong, the deserialized object fails completely.

The results I get are:

1: (not deserialized)
        %%tag%%
        **tag**
        ((general_FITB))
        !!tag!!

2: (serialized and deserialized)
        %%%%
        ****
        ((general_FITB))
        !!tag!!

Reply via email to