Modification des thèmes (subject)
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
lun., 17 sept. 2012 11:58:28 +0200
changeset 132 98124166003a
parent 131 a3a9e8edb4ff
child 133 ca8e2710f992
Modification des thèmes (subject)
RelaxNG/Examples/Documents/torture_test.xml
RelaxNG/publidoc.rnc
--- a/RelaxNG/Examples/Documents/torture_test.xml	jeu. sept. 13 12:47:35 2012 +0200
+++ b/RelaxNG/Examples/Documents/torture_test.xml	lun. sept. 17 11:58:28 2012 +0200
@@ -42,8 +42,8 @@
         <keyword>météo</keyword>
       </keywordset>
       <subjectset>
-        <subject id="test"/>
-        <subject id="littérature"/>
+        <subject>test</subject>
+        <subject>littérature</subject>
       </subjectset>
       <abstract>
         <p>
--- a/RelaxNG/publidoc.rnc	jeu. sept. 13 12:47:35 2012 +0200
+++ b/RelaxNG/publidoc.rnc	lun. sept. 17 11:58:28 2012 +0200
@@ -476,7 +476,7 @@
 
 pagenumber.content = xsd:positiveInteger
 
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~ keyword & subject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 # ~~~~~~ keywordset
 keywordset = element keywordset { keywordset.content }
@@ -494,11 +494,9 @@
 subjectset.content = subject+
 
 # ~~~~~~ subject
-subject = element subject { subject.attributes }
+subject = element subject { subject.content }
 
-subject.attributes =
-   subject.id.attribute
-subject.id.attribute = attribute id { xsd:NMTOKEN }
+subject.content = xsd:NMTOKEN
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ abstract ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~