summaryrefslogtreecommitdiff
path: root/tests/examplefiles/rnc_example.rnc
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2016-06-03 11:49:39 -0700
committerTim Hatch <tim@timhatch.com>2016-06-03 11:49:39 -0700
commit7c889a5a92b8622bf56b3d8f6a9953bba49ce5e8 (patch)
treeee7113628aa1d62d8d64dbd7ee7616ee7a9169ab /tests/examplefiles/rnc_example.rnc
parent2030bc55da7b11c58cd6f25d113f85da8bbff28c (diff)
parent0c6fd9c498d161cfdf29e442a218f78f2f211778 (diff)
downloadpygments-7c889a5a92b8622bf56b3d8f6a9953bba49ce5e8.tar.gz
Merged in pull request #595 (cmrx64/pygments-main)
Diffstat (limited to 'tests/examplefiles/rnc_example.rnc')
-rw-r--r--tests/examplefiles/rnc_example.rnc33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/examplefiles/rnc_example.rnc b/tests/examplefiles/rnc_example.rnc
new file mode 100644
index 00000000..a1440302
--- /dev/null
+++ b/tests/examplefiles/rnc_example.rnc
@@ -0,0 +1,33 @@
+# This is a sample RNC file from the tutorial for the 2003 Working Draft
+# http://relaxng.org/compact-tutorial-20030326.html
+
+element html {
+ element head {
+ element title { text }
+ },
+ element body {
+ element table {
+ attribute class { "addressBook" },
+ element tr {
+ attribute class { "card" },
+ element td {
+ attribute class { "name" },
+ mixed {
+ element span {
+ attribute class { "givenName" },
+ text
+ }?,
+ element span {
+ attribute class { "familyName" },
+ text
+ }?
+ }
+ },
+ element td {
+ attribute class { "email" },
+ text
+ }
+ }+
+ }
+ }
+}