Schemas/X3D

From Code Synthesis Wiki

< Schemas(Difference between revisions)
Jump to: navigation, search
Revision as of 13:16, 17 February 2008
Boris (Talk | contribs)
(Add a note about the file-per-type compilation mode)
← 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 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+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]. 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].

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