Skip to content
GitLab
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
67c4e64e
Commit
67c4e64e
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2005-06-07 22:02:51 by beppe] Empty log message
Original author: beppe Date: 2005-06-07 22:02:51+00:00
parent
7a781748
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/tutorial/patterns.xml
View file @
67c4e64e
...
...
@@ -236,10 +236,10 @@ while if the attribute is absent the default sub-pattern is used to assign the
variable a default value.
</p>
<p>
The use of pattern of the form
<code>
The use of pattern
s
of the form
<code>
({ label1= x } | (x := %%v%%))
&
{ label2 = y }
</code>
is so common in handling
optional fields (hence, XML attributes) that CDuce has a special syntax for this
pattern:
<code>
kind of
pattern
s
:
<code>
{ label1 = x else (x := %%v%%) ; label2 = y }
</code>
</p>
</box>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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