Ajout d'un type au document
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
ven., 09 nov. 2012 19:00:12 +0100
changeset 142 a9dda767468c
parent 141 c9c48f6453f4
child 143 4b67a859439a
Ajout d'un type au document
RelaxNG/publidoc.rnc
--- a/RelaxNG/publidoc.rnc	mer. nov. 07 12:56:24 2012 +0100
+++ b/RelaxNG/publidoc.rnc	ven. nov. 09 19:00:12 2012 +0100
@@ -46,8 +46,10 @@
 
 document.attributes =
    document.id.attribute
+ & document.type.attribute?
  & lang.attribute?
 document.id.attribute = attribute id { xsd:NMTOKEN }
+document.type.attribute = attribute type { xsd:NCName }
 lang.attribute = attribute xml:lang { xsd:language }
 
 document.content =