Ajout de l'attribut pi-source
authorPatrick PIERRE
dim., 13 juil. 2014 15:12:21 +0200
changeset 317 78fcb5b0d156
parent 316 47ffc0efdd37
child 318 a707bde6486d
Ajout de l'attribut pi-source
Data/Sets/composition.xml
RelaxNG/publiset.rnc
--- a/Data/Sets/composition.xml	dim. juin 22 09:47:20 2014 +0200
+++ b/Data/Sets/composition.xml	dim. juil. 13 15:12:21 2014 +0200
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='utf-8'?>
 <!-- $Id$ -->
 <publiset version="1.0">
-  <composition id="composition" xml:lang="fr"
+  <composition id="composition" xml:lang="fr" pi-source="true"
                as="publidoc" attributes="version=1.0">
     <division as="document" attributes="id=composition xml:lang=fr">
       <head transform="composition.xsl">
--- a/RelaxNG/publiset.rnc	dim. juin 22 09:47:20 2014 +0200
+++ b/RelaxNG/publiset.rnc	dim. juil. 13 15:12:21 2014 +0200
@@ -196,15 +196,17 @@
 
 composition.attributes =
    composition.id.attribute
+ & lang.attribute?
+ & pi-source.attribute?
  & path.attribute?
  & (xpath.attribute | xslt.attribute)?
  & remap.attributes
- & lang.attribute?
 composition.id.attribute = attribute id { xsd:NMTOKEN }
+lang.attribute = attribute xml:lang { xsd:language }
+pi-source.attribute = attribute pi-source { xsd:boolean }
 path.attribute = attribute path { xsd:anyURI }
 xslt.attribute = attribute xslt { xsd:anyURI }
 xpath.attribute = attribute xpath { text }
-lang.attribute = attribute xml:lang { xsd:language }
 
 composition.content =
    composition.head?,
@@ -241,8 +243,8 @@
 
 selection.attributes =
    selection.id.attribute
+ & lang.attribute?
  & path.attribute?
- & lang.attribute?
 selection.id.attribute = attribute id { xsd:NMTOKEN }
 
 selection.content =