Permalink
Browse files

Added @its:version, better handling of extensibility

  • Loading branch information...
kosek committed Jun 19, 2013
1 parent c991275 commit 72b28baf7d21504f2b105e21fab3506b8de98ece
Showing with 5 additions and 1 deletion.
  1. +4 −1 relaxng/schemas/dbits/dbits.rnc
  2. +1 −0 relaxng/schemas/dbits/its20.rnc
@@ -90,10 +90,13 @@ include "its20.rnc"
{
# Disable ITS directionality
its-attribute.dir = empty
# Keep extensibility but prevent conflicting ID type problem
its-foreign-element = element * - its:* { (its-foreign-no-xml-id-attribute* | text | its-foreign-element)* }
}
# Add local ITS attributes to all DocBook elements
db.common.base.attributes &= its-local.attributes
db.common.base.attributes &= its-local.attributes & its-attribute.version?
# Allow its:rules inside info element
db.info.extension |= its-rules | its-standoff
@@ -169,6 +169,7 @@ its-foreign-no-xml-id-attribute = attribute * - (local:* | xml:id) { text }
its-foreign-no-xlink-attribute = attribute * - (local:* | xlink:*) { text }
its-any-attribute = attribute * { text }
its-any-element = element * { (its-any-attribute* | text | its-any-element)* }
its-foreign-element = element * - its:* { (its-any-attribute* | text | its-foreign-element)* }

0 comments on commit 72b28ba

Please sign in to comment.