Permalink
Browse files

Created dbrdfalite as a non-normative DocBook extension

  • Loading branch information...
ndw committed Jun 20, 2013
1 parent 42ac286 commit de2dbfe423a05a1a046697fcf40fbd28405abb57

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View
@@ -9,6 +9,8 @@ ITSREL="DocBook ITS $(DBVER)"
PUBREL="DocBook Publishers $(DBVER)-1"
SLIREL="DocBook Slides $(DBVER)-1"
WEBREL="DocBook Website $(DBVER)-1"
RDFREL="DocBook RDFa Lite $(DBVER)-1"
SAXON=saxon -opts saxon-9he
TOOLSDEP=../tools/make-schema.xpl
@@ -18,7 +20,7 @@ all: schemas
schemas: docbook.rnc assembly.rnc docbookxi.rnc sdocbook.rnc dbforms.rnc dbits.rnc \
publishers.rnc slides.rnc slides-full.rnc website.rnc website-full.rnc \
docbook.sch docbookxi.sch assembly.sch publishers.sch dbits.sch
docbook.sch docbookxi.sch assembly.sch publishers.sch dbits.sch dbrdfalite.rnc
doc: defguide.rnd publishers.rnd sdocbook.rnd
@@ -33,7 +35,7 @@ publishers.sch: publishers.rng
dbits.sch: dbits.rng
%.sch: %.rng
saxon $< ../tools/schematron.xsl $@
$(SAXON) $< ../tools/schematron.xsl $@
docbook.rnc: $(TOOLSDEP) $(wildcard docbook/*.rnc)
mkdir -p build/docbook
@@ -42,7 +44,7 @@ docbook.rnc: $(TOOLSDEP) $(wildcard docbook/*.rnc)
assembly.rnc: docbook.rnc $(TOOLSDEP) $(wildcard docbook/*.rnc) $(wildcard assembly/*.rnc)
mkdir -p build/assembly
mkdir -p build/docbook
saxon docbook.rng ../tools/all-patterns.xsl build/docbook/any.docbook.rng
$(SAXON) docbook.rng ../tools/all-patterns.xsl build/docbook/any.docbook.rng
trang build/docbook/any.docbook.rng build/docbook/any.docbook.rnc
calabash ../tools/make-schema.xpl schema=assembly release=$(ASMREL) remove-schematron=$(REMOVESCH)
@@ -93,3 +95,7 @@ website.rnc: $(TOOLSDEP) $(wildcard docbook/*.rnc) $(wildcard website/*.rnc)
website-full.rnc: $(TOOLSDEP) $(wildcard docbook/*.rnc) $(wildcard website/*.rnc) $(wildcard website-full/*.rnc)
mkdir -p build/website-full
calabash ../tools/make-schema.xpl schema=website-full release=$(SLIREL) remove-schematron=$(REMOVESCH)
dbrdfalite.rnc: $(TOOLSDEP) $(wildcard dbrdfalite/*.rnc)
mkdir -p build/dbrdfalite
calabash ../tools/make-schema.xpl schema=dbrdfalite release=$(RDFREL) remove-schematron=$(REMOVESCH)
@@ -0,0 +1,28 @@
<copyright-template>
This file is part of {$release}
Copyright 1992-2013 HaL Computer Systems, Inc.,
O'Reilly &amp; Associates, Inc., ArborText, Inc., Fujitsu Software
Corporation, Norman Walsh, Sun Microsystems, Inc., and the
Organization for the Advancement of Structured Information
Standards (OASIS).
Permission to use, copy, modify and distribute the DocBook schema
and its accompanying documentation for any purpose and without fee
is hereby granted in perpetuity, provided that the above copyright
notice and this paragraph appear in all copies. The copyright
holders make no representation about the suitability of the schema
for any purpose. It is provided "as is" without expressed or implied
warranty.
If you modify the DocBook schema in any way, label your schema as a
variant of DocBook. See the reference documentation
(http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
for more information.
Please direct all questions, bug reports, or suggestions for changes
to the docbook@lists.oasis-open.org mailing list. For more
information, see http://www.oasis-open.org/docbook/.
======================================================================
</copyright-template>
@@ -0,0 +1,75 @@
# This file is part of DocBook V5.0
#
# Copyright 1992-2008 HaL Computer Systems, Inc.,
# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
# Organization for the Advancement of Structured Information
# Standards (OASIS).
#
# Release: $Id$
#
# Permission to use, copy, modify and distribute the DocBook schema
# and its accompanying documentation for any purpose and without fee
# is hereby granted in perpetuity, provided that the above copyright
# notice and this paragraph appear in all copies. The copyright
# holders make no representation about the suitability of the schema
# for any purpose. It is provided "as is" without expressed or implied
# warranty.
#
# If you modify the DocBook schema in any way, label your schema as a
# variant of DocBook. See the reference documentation
# (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
# for more information.
#
# Please direct all questions, bug reports, or suggestions for changes
# to the docbook@lists.oasis-open.org mailing list. For more
# information, see http://www.oasis-open.org/docbook/.
#
# ======================================================================
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 "../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
}

0 comments on commit de2dbfe

Please sign in to comment.