Schemas/X3D

From Code Synthesis Wiki

< Schemas(Difference between revisions)
Jump to: navigation, search
Revision as of 11:28, 29 September 2006
Boris (Talk | contribs)
(Create a page for X3D schemas)
← Previous diff
Current revision
Boris (Talk | contribs)

Line 1: Line 1:
-This page contains information on compiling [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://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 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 <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
 + 
 +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