summaryrefslogtreecommitdiffstats
path: root/tests/008/students.txr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/008/students.txr')
-rw-r--r--tests/008/students.txr22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/008/students.txr b/tests/008/students.txr
new file mode 100644
index 00000000..5fc4e25c
--- /dev/null
+++ b/tests/008/students.txr
@@ -0,0 +1,22 @@
+<Students>
+@(collect)
+@ (cases)
+ <Student Name="@NAME" Gender="@GENDER"@/ +/DateOfBirth="@YEAR-@MONTH-@DAY"@/.*/
+@ (or)
+ <Student DateOfBirth="@YEAR-@MONTH-@DAY" Gender="@GENDER" Name="@NAME"@/.*/
+@ (end)
+@ (maybe)
+ <Pet Type="@PET_TYPE" Name="@PET_NAME" />
+@ (or)
+@ (bind PET_TYPE "none")
+@ (bind PET_NAME "")
+@ (end)
+@(until)
+</Students>
+@(end)
+@(output :filter :from_html)
+NAME G DOB PET
+@ (repeat)
+@{NAME 12} @GENDER @YEAR-@MONTH-@DAY @PET_TYPE @PET_NAME
+@ (end)
+@(end)