generate application.xml for J2EE 1.4
in plugin.jeyy extend
<j:switch on="${maven.ear.appxml.version}">
<j:case value="1.3">
<x:doctype name="application" publicId="-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" systemId="http://java.sun.com/dtd/application_1_3.dtd"/>
</j:case>
<j:default>
<x:doctype name="application" publicId="-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" systemId="http://java.sun.com/j2ee/dtds/application_1_2.dtd"/>
</j:default>
</j:switch>
to cater for <j:case value="1.4>
and generate the following header (however that is done in xdoc)
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd
" version="1.4">
I'm afraid the solution is not that simple, as J2EE 1.4 uses XML Schema and the Jelly XML taglib doesn't seems to support it (if it does, I didn't realize how
.
Anyway, I opened an issue on the Jelly tags:
http://nagoya.apache.org/jira/browse/JELLY-173
– Felipe