# HG changeset patch # User Patrick PIERRE # Date 1308404414 -7200 # Node ID c0f9e813c039ec39129a48961a93ffea04c36a38 # Parent 0bd36d3b6a5a04336297f2348c991403461f3d28 Ajustement des sélection diff -r 0bd36d3b6a5a -r c0f9e813c039 RelaxNG/publidoc.rnc --- a/RelaxNG/publidoc.rnc sam. juin 18 09:47:23 2011 +0200 +++ b/RelaxNG/publidoc.rnc sam. juin 18 15:40:14 2011 +0200 @@ -281,7 +281,9 @@ # ~~~~~~ item item = element item { item.content } -item.content = block+ +item.content = + inlines + | block+ # ~~~~~~ glossary.item glossary.item = element item { glossary.item.content } diff -r 0bd36d3b6a5a -r c0f9e813c039 RelaxNG/publidoc.rng --- a/RelaxNG/publidoc.rng sam. juin 18 09:47:23 2011 +0200 +++ b/RelaxNG/publidoc.rng sam. juin 18 15:40:14 2011 +0200 @@ -584,9 +584,12 @@ - - - + + + + + + diff -r 0bd36d3b6a5a -r c0f9e813c039 RelaxNG/publiset.rnc --- a/RelaxNG/publiset.rnc sam. juin 18 09:47:23 2011 +0200 +++ b/RelaxNG/publiset.rnc sam. juin 18 15:40:14 2011 +0200 @@ -40,7 +40,7 @@ composition.content = composition.head?, - (composition.file | composition.division)+ + (composition.division | composition.file)+ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ selection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -52,12 +52,11 @@ selection.attributes = selection.id.attribute & path.attribute? - & xpath.attribute? selection.id.attribute = attribute xml:id { xsd:ID } selection.content = selection.head?, - (selection.file | selection.division)+ + (selection.division | selection.file | link)+ # ============================================================================= @@ -168,14 +167,13 @@ & remap.attributes selection.division.attributes = path.attribute? - & xpath.attribute? composition.division.content = composition.head?, (composition.division | composition.file)+ selection.division.content = selection.head?, - (selection.division | selection.file)+ + (selection.division | selection.file | link)+ # ============================================================================= @@ -184,18 +182,32 @@ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -composition.file = element file { composition.file.attributes, file.content } +composition.file = element file { composition.file.attributes } selection.file = element file { selection.file.attributes, file.content } composition.file.attributes = - xpath.attribute? + name.attribute + & xpath.attribute? & xslt.attribute? & remap.attributes selection.file.attributes = - xpath.attribute? + name.attribute + & uri.attribute? +name.attribute = attribute name { xsd:anyURI } +uri.attribute = attribute uri { xsd:anyURI } -file.content = xsd:anyURI - +file.content = inlines + +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +link = element link { link.attributes, link.content } + +link.attributes = + uri.attribute + +link.content = inlines + + # ============================================================================= # INLINE LEVEL # ============================================================================= diff -r 0bd36d3b6a5a -r c0f9e813c039 RelaxNG/publiset.rng --- a/RelaxNG/publiset.rng sam. juin 18 09:47:23 2011 +0200 +++ b/RelaxNG/publiset.rng sam. juin 18 15:40:14 2011 +0200 @@ -77,8 +77,8 @@ + - @@ -95,9 +95,6 @@ - - - @@ -111,8 +108,9 @@ + - + @@ -332,14 +330,9 @@ - - - - - - - - + + + @@ -360,6 +353,7 @@ + @@ -372,7 +366,6 @@ - @@ -383,6 +376,7 @@ + @@ -393,12 +387,38 @@ - - - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + +