XalanJ2
  1. XalanJ2
  2. XALANJ-1550

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.7
    • Component/s: XPath
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      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!!

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kahli Burke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development