Skip to content

Instantly share code, notes, and snippets.

@docbook
Created May 22, 2012 12:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save docbook/2768701 to your computer and use it in GitHub Desktop.
Save docbook/2768701 to your computer and use it in GitHub Desktop.
DocBook 5 customization layer for RDFa Lite support
# 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment