Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1618

XPath xs:hexBinary equality comparison does not work

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • None
    • Back End, General
    • None

    Description

      The PCAP schema has a MagicNumber element with type xs:hexBinary. Tests are performed on this to determine the endianness of the data. It does this by converting the hexBinary to a string and then comparing against a string, i.e.

      xs:string(.) eq 'ABCDEF'

      String conversion shouldn't be necessary, so I modified to to use xs:hexBinary insteat, i.e.

      . eq xs:hexBinary('ABCDEF')

      This should work, is more readable, and should be slightly more efficient since it doesn't need to convert the hexBinary value to a string. However, this always fails comparison. We need to investigate why this fails and fix it so that we can do hexBinary comparisons.

      Gliffy Diagrams

        Attachments

          Activity

            People

              slawrence Steve Lawrence
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Tasks