Commits

Shlomi Fish committed c7dcfb6

More.

Comments (0)

Files changed (2)

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

 <ol>
 
 <li>
+<p>
 <a href="https://www.socialtext.net/perl5/prototype">Discussion on the Perl 5 Wiki</a>
+</p>
 </li>
 
 <li>
+<p>
 <a href="http://stackoverflow.com/questions/297034/why-are-perl-5s-function-prototypes-bad">“Why
 are Perl 5’s function prototypes bad?”</a> on Stack Overflow.
+</p>
 </li>
 
 </ol>
 <cpan_self_mod m="Getopt::Long" />.
 </p>
 
-<h4 id="clobbering-arrays-or-hashes">Don't clobber arrays or hashes</h4>
-
+<item id="clobbering-arrays-or-hashes" h="Don’t clobber arrays or hashes">
 <p>
 Often people ask how to pass arrays or hashes to subroutines. The answer is
 that the right way to do it is to pass them as a reference as an argument
 extract from <code>@_</code>.
 </p>
 
-<h4 id="named-parameters">Named Parameters</h4>
+</item>
+
+<item id="named-parameters" h="Named Parameters">
 
 <p>
 If the number of parameters that your subroutine accepts gets too long, or
 
 </item>
 
+</item>
+
 <item id="chop" h="Avoid using chop() to trim newlines characters from lines">
 
 <p>

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

             <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>
+            <ref name="some_items" />
             <zeroOrMore>
                 <ref name="section" />
             </zeroOrMore>
         </element>
     </define>
+    <define name="some_items">
+        <zeroOrMore>
+            <ref name="item" />
+        </zeroOrMore>
+    </define>
+    <define name="item">
+        <element name="vrd:item">
+            <ref name="global_attrs" />
+            <ref name="info" />
+            <ref name="several_paras" />
+            <ref name="some_items" />
+        </element>
+    </define>
     <define name="several_paras">
         <zeroOrMore>
             <choice>
             <text />
             <ref name="b" />
             <ref name="i" />
+            <element name="vrd:cpan_self_dist">
+                <attribute name="d">
+                    <text />
+                </attribute>
+                <empty />
+            </element>
+            <element name="vrd:cpan_self_mod">
+                <attribute name="m">
+                    <text />
+                </attribute>
+                <empty />
+            </element>
+            <element name="vrd:cpan_mod">
+                <attribute name="m">
+                    <text />
+                </attribute>
+                <text />
+            </element>
+            <element name="vrd:pdoc">
+                <attribute name="d">
+                    <text />
+                </attribute>
+                <text />
+            </element>
             <element name="vrd:strong">
                 <text />
             </element>