[ 
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1638?page=comments#action_17624
 ] 

Ales Dolecek commented on XDT-1638:
-----------------------------------

Acutally I use XML schema not DTD. HEre is URL: 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd

The element definition is:
<xsd:sequence>
  <xsd:group ref="j2ee:descriptionGroup"/>
  <xsd:element name="filter-name" type="j2ee:filter-nameType"/>
  <xsd:element name="filter-class" type="j2ee:fully-qualified-classType"/>
  <xsd:element name="init-param" type="j2ee:param-valueType" minOccurs="0" 
maxOccurs="unbounded"/>
</xsd:sequence>

I left out the annotations. The description comes first. BTW it is same as in 
all other elements like <servlet> etc...

> Wrong order of elements in <filter> violate schema for web.xml deployment 
> descriptor
> ------------------------------------------------------------------------------------
>
>          Key: XDT-1638
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1638
>      Project: XDoclet
>         Type: Bug

>   Components: Web Module
>     Versions: 1.2.3
>     Reporter: Ales Dolecek
>     Assignee: xdoclet-devel (Use for new issues)
>     Priority: Trivial

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> Filter tag:
>  * @web.filter
>  *   description="My custom filter"
>  *   name="MyFilter"
> generates XML fragment
>    <filter>
>       <filter-name>MyFilter</filter-name>
>       <description><![CDATA[My custom filter]]></description>
>       <filter-class>com.example.MyFilter</filter-class>
>    </filter>
> which violate Sun's DTD since the <description/> element should go before 
> <filter-name/>.
> The <description/> must be the first element of <filter/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to