Schemas/X3D

From Code Synthesis Wiki

< Schemas(Difference between revisions)
Jump to: navigation, search
Revision as of 06:52, 17 November 2006
Boris (Talk | contribs)
(Add recommended compile options)
← Previous diff
Current revision
Boris (Talk | contribs)

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 these schemas 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 X3D schemas:+The following options are recommended to compile the X3D schemas:
- --morph-anonymous --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.

Current revision

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 these schemas 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.

Personal tools