Created
May 22, 2012 12:16
-
-
Save docbook/2768701 to your computer and use it in GitHub Desktop.
DocBook 5 customization layer for RDFa Lite support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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