public
Last active

DocBook 5 customization layer for RDFa Lite support

  • Download Gist
rdfalite.rnc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# This file IS NOT part of DocBook V5.0
#
# ======================================================================
 
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace s = "http://purl.oclc.org/dsdl/schematron"
namespace db = "http://docbook.org/ns/docbook"
default namespace = "http://docbook.org/ns/docbook"
 
include "../../schemas/docbook/docbook.rnc" {
 
rdfalite.vocab =
[
db:refpurpose [ "The RDFa Lite vocab" ]
]
attribute vocab { xsd:anyURI }
 
rdfalite.typeof =
[
db:refpurpose [ "The RDFa Lite typeof" ]
]
attribute typeof { text }
 
rdfalite.property =
[
db:refpurpose [ "The RDFa Lite property" ]
]
attribute property { text }
 
rdfalite.resource =
[
db:refpurpose [ "The RDFa Lite resource" ]
]
attribute resource { text }
 
rdfalite.prefix =
[
db:refpurpose [ "The RDFa Lite prefix" ]
]
attribute prefix { text }
 
rdfalite.attributes =
rdfalite.vocab?
& rdfalite.typeof?
& rdfalite.property?
& rdfalite.resource?
& rdfalite.prefix?
 
db.common.base.attributes &= rdfalite.attributes
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.