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

[r2003-11-28 20:15:13 by beppe] Empty log message

Original author: beppe
Date: 2003-11-28 20:15:13+00:00
parent 8d3658b0
......@@ -190,7 +190,8 @@ val argv : [ String* ] = ""
</p>
<sample><![CDATA[
# #print_schema Mails;;
Types: C:10:attachmentType S:mimeTopLevelType' C:12:mailType C:4:envelopeType C:14:mailsType S:bodyType'
Types: C:10:attachmentType S:mimeTopLevelType' C:12:mailType C:4:envelopeType
C:14:mailsType S:bodyType'
Attributes: @name:xsd:string
Elements: E:18:<Date> E:15:<mails> E:17:<header>
Attribute groups: {agroup:mimeTypeAttributes}
......@@ -458,7 +459,7 @@ X1 = <mimetype {| type = [ ... ]; subtype = String |}>[ ]
CDuce permits to have XML values made of arbitrary types, for example you
can have XML elements which have integer attributes. Still, this feature is
rarely used because the function used to load XML documents
(<code>load_xml</code>) return XML values which have as leaves values of
(<code>load_xml</code>) returns XML values which have as leaves values of
type PCDATA.
</p>
<p>
......@@ -475,7 +476,7 @@ X1 = <mimetype {| type = [ ... ]; subtype = String |}>[ ]
During validation PCDATA strings are parsed to build CDuce values
corresponding to XML Schema simple types and whitespace are handled as
specified by XML Schema <code>whiteSpace</code> facet. For example,
validating the <code>1234567890</code> <em>PCDATA string</em> against an
validating the <code>1234567890 </code><em>PCDATA string</em> against an
<code>xsd:integer</code> simple type will return the CDuce value
<code>1234567890</code> typed with type <code>Int</code>.<br />
Default values for missing attributes or elements are also added where
......
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