Commits

Shlomi Fish committed ab07b3e

Add the .rng for XML-Grammar-Vered.

This will be a custom and ad-hoc XML grammar used to notate
src/tutorials/bad-elements/index.html.wml and in the future possibly
other documents because the Website Meta Language markup of bad-elements
is getting out of hard, and also makes it harder to contribute to the page
or translate it.

Vered is a transliteration of the Hebrew word for "Rose" as a reference
to "A Rose by any other name", and is also a common Israeli feminine name.
In Hebrew it is writen ורד:

http://en.wiktionary.org/wiki/%D7%95%D7%A8%D7%93

Comments (0)

Files changed (1)

lib/XML-Grammar-Vered/vered-xml.rng

+<?xml version="1.0" encoding="UTF-8"?>
+<!-- $Id: testSuite.rng,v 1.12 2003/01/29 12:24:07 jjc Exp $ -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+    xmlns:vrd="http://www.shlomifish.org/open-source/projects/XML-Grammar/Vered/"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
+    >
+    <start>
+        <element name="vrd:document">
+            <ref name="common_attrs" />
+            <attribute name="version">
+                <text />
+            </attribute>
+            <element name="fic:head">
+                <empty/>
+            </element>
+            <element name="fic:body">
+                <ref name="common_attrs" />
+                <ref name="title" />
+                <oneOrMore>
+                    <ref name="section" />
+                </oneOrMore>
+            </element>
+        </element>
+    </start>
+    <define name="common_attrs">
+        <optional>
+            <attribute name="xml:id">
+                <data type="ID"/>
+            </attribute>
+        </optional>
+        <optional>
+            <attribute name="xml:lang">
+                <data type="NCName" />
+            </attribute>
+        </optional>
+        <optional>
+            <attribute name="xlink:href">
+                <data type="anyURI"/>
+            </attribute>
+        </optional>
+    </define>
+    <define name="section">
+        <element name="fic:section">
+            <ref name="common_attrs" />
+            <ref name="title" />
+            <ref name="several_paras" />
+            <zeroOrMore>
+                <ref name="section" />
+            </zeroOrMore>
+        </element>
+    </define>
+    <define name="several_paras">
+        <zeroOrMore>
+            <choice>
+                <ref name="blockquote"/>
+                <ref name="para"/>
+                <ref name="ol"/>
+                <ref name="ul"/>
+                <ref name="programlisting"/>
+            </choice>
+        </zeroOrMore>
+    </define>
+    <define name="inside_list">
+        <oneOrMore>
+            <ref name="li" />
+        </oneOrMore>
+    </define>
+    <define name="ol">
+        <element name="fic:ol">
+            <ref name="inside_list" />
+        </element>
+    </define>
+    <define name="ul">
+        <element name="fic:ul">
+            <ref name="inside_list" />
+        </element>
+    </define>
+    <define name="blockquote">
+        <element name="fic:blockquote">
+            <ref name="common_attrs" />
+            <ref name="several_paras"/>
+        </element>
+    </define>
+    <define name="li">
+        <element name="fic:li">
+            <oneOrMore>
+                <ref name="para" />
+            </oneOrMore>
+        </element>
+    </define>
+    <define name="para">
+        <element name="fic:p">
+            <zeroOrMore>
+                <choice>
+                    <ref name="text_with_style" />
+                    <ref name="span" />
+                </choice>
+            </zeroOrMore>
+        </element>
+    </define>
+    <define name="text_with_style">
+        <choice>
+            <text />
+            <ref name="b" />
+            <ref name="i" />
+        </choice>
+    </define>
+    <define name="span">
+        <element name="fic:span">
+            <ref name="common_attrs" />
+            <oneOrMore>
+                <ref name="text_with_style" />
+            </oneOrMore>
+        </element>
+    </define>
+    <define name="b">
+        <element name="fic:b">
+            <text />
+        </element>
+    </define>
+    <define name="i">
+        <element name="fic:i">
+            <text />
+        </element>
+    </define>
+    <define name="title">
+        <element name="fic:title">
+            <text />
+        </element>
+    </define>
+    <define name="programlisting">
+        <element name="fic:programlisting">
+            <text />
+        </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.