[ 
https://issues.apache.org/struts/browse/WW-3299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46969#action_46969
 ] 

Musachy Barroso commented on WW-3299:
-------------------------------------

This has been discussed before, x.y.z is allowed by the jsp spec (section 
JSP.C.4DTD for TLD, JSP 1.1):

<!--
The taglib tag is the document root, it defines:
tlibversion the version of the tag library implementation
jspversion the version of JSP the tag library depends upon
shortname a simple default short name that could be used by a JSP authoring
tool to create names with a mnemonic value; for example, the it may be used as
the prefered prefix value in taglib directives
uri            a uri uniquely identifying this taglib
info           a simple string describing the "use" of this taglib, should be 
user dis-
cernable
-->
<!ELEMENT taglib (tlibversion, jspversion?, shortname, uri?, info?, tag+) >
<!ATTLIST taglib id ID #IMPLIED
      xmlns CDATA #FIXED
     "http://java.sun.com/dtd/web-jsptaglibrary_1_1.dtd";
>
<!--
Describes this version (number) of the taglibrary (dewey decimal)
#PCDATA ::= [0-9]*{ "."[0-9] }0..3
-->


> XML validation issue on struts-tags.tld for <tlib-version> which should be in 
> X.Y format instead of X.Y.Z
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3299
>                 URL: https://issues.apache.org/struts/browse/WW-3299
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>         Environment: Any
>            Reporter: olivier dupuy
>            Priority: Minor
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to