Commit ed74b4a4 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2003-05-16 07:29:54 by cvscast] Empty log message

Original author: cvscast
Date: 2003-05-16 07:29:54+00:00
parent 94480009
......@@ -99,10 +99,10 @@ let parents : ParentBook =
</right>
</two-columns>
Note the strightforward correspondence between the two notations: instead of
Note the straightforward correspondence between the two notations: instead of
using an closing tag, we enclose the content of each element in square
brackets. In CDuce square backets denote sequences, that is, heterogenoeus (ordered) lists
of blank-separated elements.
brackets. In CDuce square brackets denote sequences, that is, heterogeneous (ordered) lists
of blank-separated elements. In CDuce strings are not a primitive data-type but are sequences of characters.
To the purpose of the example we used different notations to denote
strings as in CDuce <code>"xyz"</code>, <code> ['xyz']</code>, <code> ['x' 'y' 'z']</code>,
......@@ -116,11 +116,11 @@ characters.
<box title="Loading XML files" link="t0.5">
<p>
The program on the right handside in the previous section starts by binding the
The program on the right hand-side in the previous section starts by binding the
variable <code>parents</code> to the XML document. It also specifies that
parents has the type <a href="#t1"><code>ParentBook</code></a>: this is optional
but it usually allows erlier detection of type errors. If the file XML on the
lefthandside is stored in a file, say, <tt>parents.xml</tt> then the same
but it usually allows earlier detection of type errors. If the file XML on the
left hand-side is stored in a file, say, <tt>parents.xml</tt> then the same
binding can be obtained by loading the file as follows
</p>
<sample><![CDATA[
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment