Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3299

XML validation issue on struts-tags.tld for <tlib-version> which should be in X.Y format instead of X.Y.Z

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.6
    • 2.2.1
    • None
    • None
    • Any

    Description

      Hi

      I use struts 2.1.6
      If I add struts-stags.tld to my project in WEB-INF as it is perfectly legal and referring it in web.xml and if I validate the TLD I get an error on <tlib-version>2.2.3</tlib-version>

      My IDE, RSA 7.0.8 built on Eclipse 3.4 I think gives me the errors
      cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'.
      cvc-type.3.1.3: The value '2.2.3' of element 'tlib-version' is not valid.

      If you open the XSD given at the top of the TLD file http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd

      You will find the following definition for
      <xsd:sequence>
      <xsd:group ref="j2ee:descriptionGroup"/>
      <xsd:element name="tlib-version"
      type="j2ee:dewey-versionType">
      <xsd:annotation>
      <xsd:documentation>

      Describes this version (number) of the taglibrary.
      It is described as a dewey decimal.

      </xsd:documentation>
      </xsd:annotation>

      A "Dewey" number, used in libraries and others has only one decimal, see http://en.wikipedia.org/wiki/Dewey_Decimal_Classification

      So obviously the number should have a format X.Y and not X.Y.Z, I made the change locally and it works.

      Thanks

      Olivier

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            odupuy olivier dupuy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: