Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1550

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.5
    • 2.7
    • XPath
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Operating System: Windows XP
      Platform: PC
    • 20492

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            kahliburke@attbi.com Kahli Burke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: