Commit 0d5822bc authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2004-09-28 21:07:13 by beppe] Empty log message

Original author: beppe
Date: 2004-09-28 21:07:13+00:00
parent 24c6c62f
......@@ -256,7 +256,7 @@ let parents : ParentBook = {{load_xml}} "parents.xml"
we would obtain a type error as we were trying to use an expression of type
<code>Any</code> where an expression of type <code>ParentBook</code> is expected.
The right way to reproduce the binding above is:
</p>
</p> load_xml "parents.xml"
<sample><![CDATA[
let parents : ParentBook =
match load_xml "parents.xml" with
......@@ -272,7 +272,10 @@ type <code>ParentBook</code>) then it performs the assignment (the variable
<code>x&amp;ParentBook</code>) otherwise it raises an exception.
</p>
<p>
The command <code>load_xml "parents.xml"</code> is just an abbreviated form
for <code>load_xml "{{file://}}parents.xml"</code>. If CDuce has been compiled with netclient or curl support, it is also possible to use other URI schemes such as http:// or ftp://. A special scheme string:// is always supported: the string following the scheme is parsed as it is. So <code>load_xml "string://%%exp%%"</code> corresponds to XQuery <code>{%%exp%%}</code> to include litteral XML expression <code>%%exp%%</code>.
</p>
</box>
<box title="Type declarations" link="type_decl">
......
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