Debian Codegraph @

tests/data/bad-attr.t1x

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <transfer default="chunk">
3 <section-def-cats>
4 <def-cat n="vblexpassfv">
5 <cat-item tags="vblex.pres.pasv"/>
6 <cat-item tags="vblex.pret.pasv"/>
7 <cat-item tags="vblex.pstv.pres"/>
8 </def-cat>
9 <def-cat n="prn">
10 <cat-item tags="prn.*"/>
11 </def-cat>
12 <def-cat n="nacr">
13 <cat-item tags="n.acr"/>
14 </def-cat>
15 <def-cat n="det">
16 <cat-item tags="det"/>
17 </def-cat>
18 <def-cat n="adj">
19 <cat-item tags="adj"/>
20 </def-cat>
21 </section-def-cats>
22 <section-def-attrs>
23 <def-attr n="a_nom">
24 <attr-item tags="n"/>
25 <attr-item tags="np"/>
26 </def-attr>
27 </section-def-attrs>
28
29 <section-def-vars>
30 <def-var n="caseFirstWord"/>
31 <def-var n="tmp"/>
32 </section-def-vars>
33
34 <section-def-lists>
35 <def-list n="foo">
36 <list-item v="foo"/>
37 </def-list>
38 </section-def-lists>
39
40 <section-def-macros>
41 <def-macro n="set_caseFirstWord" npar="1"
42 c="Downcases the argument, unless np">
43 <!-- TODO: Put a marker for acronyms where we don't want to copy case from them; then drop the tag -->
44 <choose><when>
45 <test><not><equal><clip pos="1" side="tl" part="a_nom"/><lit-tag v="np"/></equal></not></test>
46 <modify-case><clip pos="1" side="tl" part="lemh"/><lit v="aa"/></modify-case>
47 </when></choose>
48 <choose>
49 <when c="Proper noun, not first word in sentence: let first word have lowercase">
50 <test><and>
51 <not><equal><var n="caseFirstWord"/><lit v=""/></equal></not>
52 <begins-with><clip pos="1" side="tl" part="a_nom"/><lit-tag v="np"/></begins-with>
53 </and></test>
54 <let><var n="caseFirstWord"/><lit v="aa"/></let>
55 </when>
56 <otherwise>
57 <let><var n="caseFirstWord"/><get-case-from pos="1"><lit v="aa"/></get-case-from></let>
58 </otherwise>
59 </choose>
60
61 </def-macro>
62 </section-def-macros>
63
64 <section-rules>
65 <rule>
66 <pattern>
67 <pattern-item n="prn"/>
68 </pattern>
69 <action>
70 <let>
71 <clip pos="1" side="tl" part="IAMSTUCKINANXMLFILEPLEASEHELP"/>
72 <lit v=""/>
73 </let>
74 </action>
75 </rule>
76 </section-rules>
77 </transfer>