Shlomi Fish avatar Shlomi Fish committed 9f6832e

More progress.

Comments (0)

Files changed (2)

lib/XML-Grammar-Vered/bad-elements-to-xml.wml

 <restore id h />
 </define-tag>
 
+<define-tag pre endtag="required">
+<code_blk* syntax="perl">
+%body
+</code_blk*>
+</define-tag>
+
+<define-tag bad_code endtag="required">
+<bad_code* syntax="perl"*>
+%body
+</bad_code*>
+</define-tag>
 <main_list>
 
 <item id="no-indentation" h="No Indentation">

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

     </define>
     <define name="section">
         <element name="vrd:section">
-            <ref name="section_contents" />
+            <ref name="global_attrs" />
+            <ref name="info" />
+            <ref name="several_paras" />
+            <zeroOrMore>
+                <element name="vrd:item">
+                    <ref name="global_attrs" />
+                    <ref name="info" />
+                    <ref name="several_paras" />
+                </element>
+            </zeroOrMore>
+            <zeroOrMore>
+                <ref name="section" />
+            </zeroOrMore>
         </element>
     </define>
     <define name="several_paras">
                 <ref name="ul"/>
                 <ref name="programlisting"/>
                 <ref name="bad_code"/>
+                <ref name="code_blk"/>
             </choice>
         </zeroOrMore>
     </define>
     </define>
     <define name="code_contents">
         <ref name="common_attrs" />
-        <attribute name="format">
+        <attribute name="syntax">
             <text/>
         </attribute>
         <text/>
             <ref name="code_contents" />
         </element>
     </define>
+    <define name="code_blk">
+        <element name="vrd:code_blk">
+            <ref name="code_contents" />
+        </element>
+    </define>
     <define name="programlisting">
         <element name="vrd:programlisting">
             <ref name="code_contents" />
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.