Philip Usatine wrote:
The DTD is at the following URL:
http://www.*apple*.com/*DTDs*/PropertyList-1.*0.dtd
I have saved the above URI into a file "properties.dtd" and used the
attached build script to parse it.
I got the error message Model groups with maxOccurs > 1
are not yet supported.
which is quite right: The construct
<!ELEMENT dict (key, (array | data | date | dict |
real | integer | string |
true | false))*>
is a sequence with maxOccurs="unbounded". This feature will hopefully be
supported in JaxMe 0.6, but it isn't in 0.5.
Sorry,
Jochen
<project name="test" default="all">
<property name="build" location="build"/>
<property name="build.src" location="${build}/src"/>
<property name="build.classes" location="${build}/classes"/>
<property name="jaxme.home" location="/home/jwi/workspace/ws-jaxme-0.5/dist"/>
<property name="debug" value="true"/>
<property name="optimize" value="false"/>
<path id="class.path">
<fileset dir="${jaxme.home}" includes="*.jar"/>
</path>
<target name="clean">
<delete dir="${build}"/>
</target>
<target name="taskdef">
<taskdef name="xjc" classname="org.apache.ws.jaxme.generator.XJCTask"
classpathref="class.path"/>
</target>
<target name="generate" depends="taskdef">
<mkdir dir="${build.src}"/>
<xjc schema="properties.dtd" packagename="test">
<dtd/>
<produces dir="${build.src}"/>
</xjc>
</target>
<target name="compile" depends="generate">
<javac srcdir="${build.src}" destdir="${build.classes}"
debug="${debug}" optimize="${optimize}"/>
</target>
<target name="all" depends="compile"/>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]