Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
d1fbfb05
Commit
d1fbfb05
authored
Oct 05, 2007
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/manual/schema.xml
View file @
d1fbfb05
...
...
@@ -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>
) return
s
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment