summaryrefslogtreecommitdiff
path: root/xsd/doc/cxx/tree
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/doc/cxx/tree')
-rw-r--r--xsd/doc/cxx/tree/guide/.gitignore2
-rw-r--r--xsd/doc/cxx/tree/guide/index.xhtml.in18
-rw-r--r--xsd/doc/cxx/tree/manual/.gitignore2
-rw-r--r--xsd/doc/cxx/tree/manual/index.xhtml.in14
4 files changed, 15 insertions, 21 deletions
diff --git a/xsd/doc/cxx/tree/guide/.gitignore b/xsd/doc/cxx/tree/guide/.gitignore
deleted file mode 100644
index 17828e9..0000000
--- a/xsd/doc/cxx/tree/guide/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-index.xhtml
-guide.html2ps
diff --git a/xsd/doc/cxx/tree/guide/index.xhtml.in b/xsd/doc/cxx/tree/guide/index.xhtml.in
index b704e50..b8f386f 100644
--- a/xsd/doc/cxx/tree/guide/index.xhtml.in
+++ b/xsd/doc/cxx/tree/guide/index.xhtml.in
@@ -325,8 +325,8 @@
<h1><a name="1">1 Introduction</a></h1>
<p>Welcome to CodeSynthesis XSD and the C++/Tree mapping. XSD is a
- cross-platform W3C XML Schema to C++ data binding compiler. C++/Tree
- is a W3C XML Schema to C++ mapping that represents the data stored
+ cross-platform W3C XML Schema 1.0 to C++ data binding compiler. C++/Tree
+ is an XML Schema 1.0 to C++ mapping that represents the data stored
in XML as a statically-typed, vocabulary-specific object model.
</p>
@@ -536,7 +536,7 @@
</p>
<pre class="terminal">
-$ xsd cxx-tree --std c++11 hello.xsd
+$ xsd cxx-tree hello.xsd
</pre>
<p>The XSD compiler produces two C++ files: <code>hello.hxx</code> and
@@ -633,7 +633,7 @@ hello (std::istream&amp;);
select C++98:</p>
<pre class="terminal">
-$ xsd cxx-tree hello.xsd
+$ xsd cxx-tree --std c++98 hello.xsd
</pre>
<p>Then the parsing function signatures will become:</p>
@@ -726,7 +726,7 @@ Hello, world!
it with the <code>--generate-serialization</code> options:</p>
<pre class="terminal">
-$ xsd cxx-tree --std c++11 --generate-serialization hello.xsd
+$ xsd cxx-tree --generate-serialization hello.xsd
</pre>
<p>If we now examine the generated <code>hello.hxx</code> file,
@@ -911,7 +911,7 @@ main (int argc, char* argv[])
change the type naming scheme:</p>
<pre class="terminal">
-$ xsd cxx-tree --std c++11 --type-naming ucc hello.xsd
+$ xsd cxx-tree --type-naming ucc hello.xsd
</pre>
<p>The <code>ucc</code> argument to the <code>--type-naming</code>
@@ -978,8 +978,7 @@ hello (std::istream&amp;);
<code>--type-regex</code> option:</p>
<pre class="terminal">
-$ xsd cxx-tree --std c++11 --type-naming ucc \
- --type-regex '/ (.+)_t/\u$1/' hello.xsd
+$ xsd cxx-tree --type-naming ucc --type-regex '/ (.+)_t/\u$1/' hello.xsd
</pre>
<p>This results in the following changes to the generated code:</p>
@@ -1114,8 +1113,7 @@ hello (std::istream&amp;);
our schema with the <code>--generate-doxygen</code> option:</p>
<pre class="terminal">
-$ xsd cxx-tree --std c++11 --generate-serialization --generate-doxygen \
- hello.xsd
+$ xsd cxx-tree --generate-serialization --generate-doxygen hello.xsd
</pre>
<p>Now the generated <code>hello.hxx</code> file contains comments
diff --git a/xsd/doc/cxx/tree/manual/.gitignore b/xsd/doc/cxx/tree/manual/.gitignore
deleted file mode 100644
index 39e8d48..0000000
--- a/xsd/doc/cxx/tree/manual/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-index.xhtml
-manual.html2ps
diff --git a/xsd/doc/cxx/tree/manual/index.xhtml.in b/xsd/doc/cxx/tree/manual/index.xhtml.in
index 5a7240a..e46f4c8 100644
--- a/xsd/doc/cxx/tree/manual/index.xhtml.in
+++ b/xsd/doc/cxx/tree/manual/index.xhtml.in
@@ -8,7 +8,7 @@
<meta name="copyright" content="&#169; @copyright@"/>
<meta name="keywords" content="xsd,xml,schema,c++,mapping,data,binding,tree,serialization,guide,manual,examples"/>
<meta name="description" content="C++/Tree Mapping User Manual"/>
- <meta name="revision" content="4.1.0"/>
+ <meta name="revision" content="@doc_version@"/>
<link rel="stylesheet" type="text/css" href="../../../default.css" />
@@ -432,7 +432,7 @@
<h2><a name="0.1">About This Document</a></h2>
- <p>This document describes the mapping of W3C XML Schema
+ <p>This document describes the mapping of W3C XML Schema 1.0
to the C++ programming language as implemented by
<a href="https://www.codesynthesis.com/products/xsd">CodeSynthesis
XSD</a> - an XML Schema to C++ data binding compiler. The mapping
@@ -441,9 +441,9 @@
called C++/Tree.
</p>
- <p>Revision 4.1.0<br/> <!-- Remember to change revision in other places -->
+ <p>Revision @doc_version@<br/>
This revision of the manual describes the C++/Tree
- mapping as implemented by CodeSynthesis XSD version 4.1.0.
+ mapping as implemented by CodeSynthesis XSD version @doc_version@.
</p>
<p>This document is available in the following formats:
@@ -487,7 +487,7 @@
<h1><a name="1">1 Introduction</a></h1>
- <p>C++/Tree is a W3C XML Schema to C++ mapping that represents the
+ <p>C++/Tree is a W3C XML Schema 1.0 to C++ mapping that represents the
data stored in XML as a statically-typed, vocabulary-specific
object model. Based on a formal description of an XML vocabulary
(schema), the C++/Tree mapping produces a tree-like data structure
@@ -3180,7 +3180,7 @@ f (object&amp; o)
<pre class="xml">
&lt;complexType name="object">
&lt;sequence>
- &lt;element name="member" type="string" minOccurs="unbounded"/>
+ &lt;element name="member" type="string" maxOccurs="unbounded"/>
&lt;/sequence>
&lt;/complexType>
</pre>
@@ -4558,7 +4558,7 @@ f (object&amp; o, const xercesc::DOMElement&amp; e)
<pre class="xml">
&lt;complexType name="object">
&lt;sequence>
- &lt;any namespace="##other" minOccurs="unbounded"/>
+ &lt;any namespace="##other" maxOccurs="unbounded"/>
&lt;/sequence>
&lt;/complexType>
</pre>