Schemas/X3D
From Code Synthesis Wiki
Revision as of 14:21, 2 August 2007 Boris (Talk | contribs) (Remove deprecated options) ← Previous diff |
Revision as of 13:16, 17 February 2008 Boris (Talk | contribs) (Add a note about the file-per-type compilation mode) Next diff → |
||
Line 1: | Line 1: | ||
This page contains information on using the [http://www.web3d.org/x3d/specifications/ X3D] schemas with XSD. | This page contains information on using the [http://www.web3d.org/x3d/specifications/ X3D] schemas with XSD. | ||
- | The [http://www.codesynthesis.com/pipermail/xsd-users/2006-September/000537.html "Issue with includes"] thread on the xsd-users mailing list has some useful information on using these schemas to generate the C++/Tree mapping. | + | The [http://www.codesynthesis.com/pipermail/xsd-users/2006-September/000537.html "Issue with includes"] thread on the xsd-users mailing list discusses the problem that arises when compiling this schema in the default, file-per-schema mode. This thread also suggest a solution to this problem that involves modifying the schemas. Alternatively, you can |
+ | use the file-per-type compilation mode which was introduced in XSD 3.1.0. For more information about the file-per-type mode see this [http://www.codesynthesis.com/~boris/blog/2008/02/13/codesynthesis-xsd-3-1-0-released/ blog post]. | ||
The following options are recommended to compile the X3D schemas: | The following options are recommended to compile the X3D schemas: | ||
Line 7: | Line 8: | ||
--root-element X3D | --root-element X3D | ||
- | If your C++ compiler runs out of memory while compiling the generated <code>x3d-3.0.cxx</code>, then you can overcome this by splitting <code>x3d-3.0.cxx</code> into several parts with the <code>--parts</code> option, e.g., | + | In the file-per-schema compilation mode, if your C++ compiler runs out of memory while compiling the generated <code>x3d-3.0.cxx</code>, then you can overcome this by splitting <code>x3d-3.0.cxx</code> into several parts with the <code>--parts</code> option, e.g., |
--parts 3 | --parts 3 | ||
and compiling each part separately. | and compiling each part separately. |
Revision as of 13:16, 17 February 2008
This page contains information on using the X3D schemas with XSD.
The "Issue with includes" thread on the xsd-users mailing list discusses the problem that arises when compiling this schema in the default, file-per-schema mode. This thread also suggest a solution to this problem that involves modifying the schemas. Alternatively, you can use the file-per-type compilation mode which was introduced in XSD 3.1.0. For more information about the file-per-type mode see this blog post.
The following options are recommended to compile the X3D schemas:
--root-element X3D
In the file-per-schema compilation mode, if your C++ compiler runs out of memory while compiling the generated x3d-3.0.cxx
, then you can overcome this by splitting x3d-3.0.cxx
into several parts with the --parts
option, e.g.,
--parts 3
and compiling each part separately.