# HG changeset patch
# User Patrick PIERRE
# Date 1394703102 -3600
# Node ID 08c4ccd5573fb596847d5da5771fecb3e16feed0
# Parent  db9645e39ec0d69f3a46345fed7aa831f9727e81
Ajout d'un attribut aux <blockquote>

diff -r db9645e39ec0 -r 08c4ccd5573f RelaxNG/Examples/Documents/torture_test.xml
--- a/RelaxNG/Examples/Documents/torture_test.xml	sam. févr. 08 02:15:14 2014 +0100
+++ b/RelaxNG/Examples/Documents/torture_test.xml	jeu. mars 13 10:31:42 2014 +0100
@@ -106,7 +106,7 @@
     <!-- ================================================================== -->
     <topic type="inscription">
       <section>
-        <blockquote>
+        <blockquote type="inscription">
           <p>Souviens-toi que le Temps est un joueur avide</p>
           <p>Qui gagne sans tricher, à tout coup ! c'est la loi.</p>
           <attribution>
diff -r db9645e39ec0 -r 08c4ccd5573f RelaxNG/publidoc.rnc
--- a/RelaxNG/publidoc.rnc	sam. févr. 08 02:15:14 2014 +0100
+++ b/RelaxNG/publidoc.rnc	jeu. mars 13 10:31:42 2014 +0100
@@ -266,8 +266,12 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ blockquote ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # ~~~~~~ blockquote
-blockquote = element blockquote { blockquote.content }
+blockquote = element blockquote { blockquote.attributes, blockquote.content }
 
+blockquote.attributes =
+   blockquote.type.attribute?
+blockquote.type.attribute = attribute type { xsd:NCName }
+   
 blockquote.content =
    block.head?,
    (p | speech | \list)+,