merge the formfield patch from ooo-build
[ooovba.git] / testautomation / xml / optional / input / docbook / productionset.001.xml
blob1be21118615907764f760ded2419df9911fd5124
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN"
3                   "http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd">
4 <article>
5 <articleinfo>
6 <title>Unit Test: productionset.001</title>
7 <releaseinfo role="CVS">$Id: productionset.001.xml,v 1.2 2008-07-11 07:53:15 rt Exp $</releaseinfo>
8 <author><firstname>Norman</firstname><surname>Walsh</surname>
9         <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
10 </author>
11 </articleinfo>
13 <productionset><title>Arithemetic Expressions</title>
14 <production id="ebnf.expression">
15   <lhs>Expression</lhs>
16   <rhs><nonterminal def="#ebnf.arith">ArithExpression</nonterminal> |
17        <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
18   <lineannotation>Does this grammar actually get precedence right?
19   </lineannotation>
20   </rhs>
21 </production>
22 <production id="ebnf.arith">
23   <lhs>ArithExpression</lhs>
24   <rhs><nonterminal def="#ebnf.expression">Expression</nonterminal>
25        '+'
26        <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
27   </rhs>
28 <!--
29   <rhs><nonterminal def="#ebnf.expression">Expression</nonterminal>
30        '-'
31        <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
32   </rhs>
33 -->
34 </production>
35 <production id="ebnf.mult">
36   <lhs>MultExpression</lhs>
37   <rhs><nonterminal def="#ebnf.mult">MultExpression</nonterminal>
38        '*'
39        <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
40   </rhs>
41 <!--
42   <rhs>
43        <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
44        '/'
45        <nonterminal def="#ebnf.mult">MultExpression</nonterminal>
46   </rhs>
47 -->
48   <constraint linkend="div0"/>
49 <!--
50   <rhs>
51        <nonterminal def="#ebnf.number">Number</nonterminal>
52   </rhs>
53 -->
54 </production>
55 <production id="ebnf.number">
56   <lhs>Number</lhs>
57   <rhs>[0-9]+</rhs>
58 </production>
59 </productionset>
61 <constraintdef id="div0" role="Err">
62 <title>Division by Zero</title>
63 <para>Division by zero is an error.</para>
64 </constraintdef>
66 </article>