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

ElemAttribute.execute() has incorrectly formatted WG_ILLEGAL_ATTRIBUTE message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.7.1
    • None
    • None
    • Operating System: All
      Platform: All
    • 10384

    Description

      Running conf test attribset19.xsl or attribset35.xsl prints out a warn() message to the console
      like:
      ...Att1 has an illegal attribute:

      {1}

      Code inspection shows that ElemAttribute.java
      r1.17 line 136 calls
      ...warn(this, ...WG_ILLEGAL_ATTRIBUTE...) with only a single
      replaceable parameter, attrName. The warning message itself WR0021 has two replaceable
      parameters.

      Note: the text of the message also doesn't seem to really match what this error is
      all about: it's not that the attrValue is bad, it's that you can't have an attr unless you're at the
      right spot in an element. So either the message text should be updated or we should have a new
      message for this condition.

      Attachments

        Activity

          People

            Unassigned Unassigned
            curcuru@apache.org Shane Curcuru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: