Anonymous avatar Anonymous committed 82f8e14

Added the initial (and heavily incomplete) version of the fortune-xml .rng
file, which aim to be the RELAX NG (RELAXNG) schema for the forutnes.

Currently it supports only a list of IRC conversation.

Comments (0)

Files changed (1)

XML-Grammar-Fortune/fortune-xml.rng

+<?xml version="1.0"?>
+<!-- $Id: testSuite.rng,v 1.12 2003/01/29 12:24:07 jjc Exp $ -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+    <start>
+        <element name="collection">
+            <element name="head">
+            </element>
+            <element name="list">
+                <oneOrMore>
+                    <ref name="fortune" />
+                </oneOrMore>
+            </element>
+        </element>
+    </start>
+    <define name="fortune">
+        <element name="fortune">
+            <choice>
+                <element name="irc">
+                    <element name="body">
+                        <oneOrMore>
+                            <choice>
+                                <element name="saying">
+                                    <attribute name="who">
+                                        <text/>
+                                    </attribute>
+                                    <text/>
+                                </element>
+                                <element name="me_is">
+                                    <attribute name="who">
+                                        <text/>
+                                    </attribute>
+                                    <text/>
+                                </element>
+                                <element name="joins">
+                                    <attribute name="who">
+                                        <text/>
+                                    </attribute>
+                                    <text/>
+                                </element>
+                                <element name="leaves">
+                                    <attribute name="who">
+                                        <text/>
+                                    </attribute>
+                                    <text/>
+                                </element>
+                            </choice>
+                        </oneOrMore>
+                    </element>
+                    <element name="info">
+                        <optional>
+                            <element name="channel">
+                                <text />
+                            </element>
+                        </optional>
+                        <optional>
+                            <element name="network">
+                                <text />
+                            </element>
+                        </optional>
+                        <optional>
+                            <element name="date">
+                                <text />
+                            </element>
+                        </optional>
+                        <optional>
+                            <element name="tagline">
+                                <text />
+                            </element>
+                        </optional>
+                    </element>
+                </element>
+            </choice>
+        </element>
+    </define>
+</grammar>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.