R
Roedy Green
I have a JNLP file that I quote below. It is supposed to control both
an installer and the application itself. However when I validate this
through the Vampqh XSD it suggests I have to choose one or the other I
can't have both. Is the XSD incorrect or am I?
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://www.mindprod.com/webstarts"
href="esper.jnlp">
<information>
<title>Esperanta Tradukilo Vortope 2.0</title>
<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/" />
<description>Word for word Esperanto to/from English
translator.</description>
<description kind="short">Looks up words on local and Internet
Esperanto dictionaries.</description>
<description kind="tooltip">Tradukilo</description>
<icon href="http://www.mindprod.com/webstarts/greenstar32x32.gif"
width="32" height="32" />
</information>
<security>
<all-permissions />
</security>
<resources>
<j2se version="1.6.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_10"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_09"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_08"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_07"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.3+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.2+"
href="http://java.sun.com/products/autodl/j2se" />
<!-- application code -->
<jar href="esper.jar" />
<!-- data dictionaries in compressed form -->
<jar href="dicts.jar" />
</resources>
<!-- application class with main method -->
<application-desc main-class="com.mindprod.esper.Esper" />
<!-- code run once on install to unpack dicts.jar. Lives in
esper.jar -->
<installer-desc main-class="com.mindprod.esper.Installer" />
</jnlp>
an installer and the application itself. However when I validate this
through the Vampqh XSD it suggests I have to choose one or the other I
can't have both. Is the XSD incorrect or am I?
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://www.mindprod.com/webstarts"
href="esper.jnlp">
<information>
<title>Esperanta Tradukilo Vortope 2.0</title>
<vendor>Canadian Mind Products</vendor>
<homepage href="http://www.mindprod.com/" />
<description>Word for word Esperanto to/from English
translator.</description>
<description kind="short">Looks up words on local and Internet
Esperanto dictionaries.</description>
<description kind="tooltip">Tradukilo</description>
<icon href="http://www.mindprod.com/webstarts/greenstar32x32.gif"
width="32" height="32" />
</information>
<security>
<all-permissions />
</security>
<resources>
<j2se version="1.6.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5.0"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.5+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_10"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_09"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_08"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_07"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_06"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_05"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_04"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_03"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_02"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2_01"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4.2"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.4+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.3+"
href="http://java.sun.com/products/autodl/j2se" />
<j2se version="1.2+"
href="http://java.sun.com/products/autodl/j2se" />
<!-- application code -->
<jar href="esper.jar" />
<!-- data dictionaries in compressed form -->
<jar href="dicts.jar" />
</resources>
<!-- application class with main method -->
<application-desc main-class="com.mindprod.esper.Esper" />
<!-- code run once on install to unpack dicts.jar. Lives in
esper.jar -->
<installer-desc main-class="com.mindprod.esper.Installer" />
</jnlp>