From: Norman Walsh Date: Sun, 24 Apr 2005 17:57:35 +0000 (+0000) Subject: Initial checkin X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c6adaff4b204ed2a96b7d8c1fc77505c5b2b323;p=docbook-dsssl Initial checkin --- diff --git a/docbook/relaxng/slides/.cvsignore b/docbook/relaxng/slides/.cvsignore new file mode 100644 index 000000000..1d06e7ccf --- /dev/null +++ b/docbook/relaxng/slides/.cvsignore @@ -0,0 +1,7 @@ +semantic.cache +slides.dtd +slides.rnc +slides.rng +slides-full.dtd +slides-full.rnc +slides-full.rng diff --git a/docbook/relaxng/slides/Makefile b/docbook/relaxng/slides/Makefile new file mode 100644 index 000000000..b4907e502 --- /dev/null +++ b/docbook/relaxng/slides/Makefile @@ -0,0 +1,50 @@ +VPATH=src + +.SUFFIXES: .rnc .rng .rnx .dtx .dtd +.PHONY: tests html + +DOCBOOK=../docbook +TOOLS=../tools +RNGFILES=$(wildcard build/*.rng) + +all: slides.rng slides.dtd slides-full.rng slides-full.dtd + +# ============================================================ +# +# N.B. We need an explicit dependency on src/*.rnc for each *.rng +# file because the build process produces an *output* RNC file +# in the current directory and that's not the one we want to +# depend on. +# +# That's also the reason for the curious sleep/touch pattern +# in the build rules. We want to make sure that the output RNC +# file is older than the output RNG file so that make doesn't +# always think it needs to rebuild the RNG file. +# +# If we could take "." out of VPATH, we wouldn't need to do this. + +slides.rng: src/slides.rnc +slides-full.rng: src/slides-full.rnc + +.rnc.rng: + $(MAKE) -C build $@ + perl $(TOOLS)/trimgrammar.pl -o ,$@ build/$@ + saxon ,$@ $(TOOLS)/trimgrammar.xsl $@ use.extensions=1 + trang $@ `basename $<` + sleep 2 + touch $@ + rm -f ,$@ + +.rng.rnx: + xsltproc -output $@ $(TOOLS)/rngdocxml.xsl $< + +.rnx.dtx: + xsltproc -output $@ $(TOOLS)/doc2dtd.xsl $< + +.dtx.dtd: + xsltproc -output $@ $(TOOLS)/xml2dtd.xsl $< + +# ============================================================ + +clean: + rm -f slides* diff --git a/docbook/relaxng/slides/build/.cvsignore b/docbook/relaxng/slides/build/.cvsignore new file mode 100644 index 000000000..c38688200 --- /dev/null +++ b/docbook/relaxng/slides/build/.cvsignore @@ -0,0 +1 @@ +*.rng diff --git a/docbook/relaxng/slides/build/Makefile b/docbook/relaxng/slides/build/Makefile new file mode 100644 index 000000000..a01a3a8cf --- /dev/null +++ b/docbook/relaxng/slides/build/Makefile @@ -0,0 +1,22 @@ +VPATH=../src + +TOOLS=../../tools + +AUGMENT=$(TOOLS)/augment.xsl +INCLUDE=$(TOOLS)/include.xsl +CLEANUP=$(TOOLS)/cleanup.pl + +.SUFFIXES: .rng .rnc + +all: + @echo Make what? + +.rnc.rng: + trang -O rng $< $@ + saxon $@ $(INCLUDE) ,$@ use.extensions=1 + saxon ,$@ $(AUGMENT) $@ use.extensions=1 + perl -i $(CLEANUP) $@ + rm -f ,$@ + +clean: + rm -f *.rng diff --git a/docbook/relaxng/slides/src/foils.rnc b/docbook/relaxng/slides/src/foils.rnc new file mode 100644 index 000000000..d790df246 --- /dev/null +++ b/docbook/relaxng/slides/src/foils.rnc @@ -0,0 +1,112 @@ +# This file is part of Slides NG + +# This schema is a reinterpretation of "Slides" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Slides 3.3.1 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +default namespace = "http://docbook.org/ns/docbook" + +[ + db:refname [ "slides" ] + db:refpurpose [ "A set of slides (or foils)" ] +] +div { + + sl.slides.role.attribute = attribute role { text } + + sl.slides.attlist = + sl.slides.role.attribute? + & db.common.attributes + + sl.slides.info = db._info.title.req + + sl.slides = + element slides { + sl.slides.attlist, + sl.slides.info, + db.all.blocks*, + sl.foil*, + sl.foilgroup* + } +} + +# ====================================================================== + +[ + db:refname [ "foilgroup" ] + db:refpurpose [ "A group of slides (or foils)" ] +] +div { + + sl.foilgroup.role.attribute = attribute role { text } + + sl.foilgroup.attlist = + sl.foilgroup.role.attribute? + & db.status.attribute? + & db.common.attributes + + sl.foilgroup.info = db._info.title.req + + sl.foilgroup = + element foilgroup { + sl.foilgroup.attlist, + sl.foilgroup.info, + (db.all.blocks|db.navigation.components)*, + sl.foil+ + } +} + +# ====================================================================== + +[ + db:refname [ "foil" ] + db:refpurpose [ "A slide (or foil)" ] +] +div { + + sl.foil.role.attribute = attribute role { text } + + sl.foil.attlist = + sl.foil.role.attribute? + & db.status.attribute? + & db.common.attributes + + sl.foil.info = db._info.title.req + + sl.foil = + element foil { + sl.foil.attlist, + sl.foil.info, + (db.all.blocks|db.navigation.components)+ + } +} + +# ====================================================================== + +[ + db:refname [ "speakernotes" ] + db:refpurpose [ "Speaker notes" ] +] +div { + + sl.speakernotes.role.attribute = attribute role { text } + + sl.speakernotes.attlist = + sl.speakernotes.role.attribute? + & db.status.attribute? + & db.common.attributes + + sl.speakernotes = + element speakernotes { + sl.speakernotes.attlist, + db.all.blocks+ + } +} diff --git a/docbook/relaxng/slides/src/slides-full.rnc b/docbook/relaxng/slides/src/slides-full.rnc new file mode 100644 index 000000000..b0fb3c6a0 --- /dev/null +++ b/docbook/relaxng/slides/src/slides-full.rnc @@ -0,0 +1,22 @@ +# This file is part of Slides NG + +# This schema is a reinterpretation of "Slides" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Slides 3.3.1 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +default namespace = "http://docbook.org/ns/docbook" + +include "../../docbook/src/docbook.rnc" { + start = sl.slides + db.all.blocks |= sl.speakernotes +} + +include "foils.rnc" diff --git a/docbook/relaxng/slides/src/slides.rnc b/docbook/relaxng/slides/src/slides.rnc new file mode 100644 index 000000000..a674f83cc --- /dev/null +++ b/docbook/relaxng/slides/src/slides.rnc @@ -0,0 +1,22 @@ +# This file is part of Slides NG + +# This schema is a reinterpretation of "Slides" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Slides 3.3.1 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +default namespace = "http://docbook.org/ns/docbook" + +include "../../simple/src/sdocbook.rnc" { + start = sl.slides + db.all.blocks |= sl.speakernotes +} + +include "foils.rnc" diff --git a/docbook/relaxng/slides/tests/minimal.xml b/docbook/relaxng/slides/tests/minimal.xml new file mode 100644 index 000000000..22f7b4882 --- /dev/null +++ b/docbook/relaxng/slides/tests/minimal.xml @@ -0,0 +1,15 @@ + + + +Presentation Title + +Foilgroup Title +Foilgroup Subtitle +Some premable. +Foil Title +Foil Subtitle +Foil content + + + + diff --git a/docbook/relaxng/slides/tests/test-full.xml b/docbook/relaxng/slides/tests/test-full.xml new file mode 100644 index 000000000..509eff97e --- /dev/null +++ b/docbook/relaxng/slides/tests/test-full.xml @@ -0,0 +1,37 @@ + + + + Test Slides Title + 2001Norman Walsh + + +Section 1 + +Test Slides Title 1 +...X + + +Test Slides Title 2 +... + +this is a screen + + + + +Section 2 + +Test Slides Title 1 +... + + +Test Slides Title 2 +... + +this is a screen + + + + + + diff --git a/docbook/relaxng/slides/tests/test.xml b/docbook/relaxng/slides/tests/test.xml new file mode 100644 index 000000000..f3cc5ad20 --- /dev/null +++ b/docbook/relaxng/slides/tests/test.xml @@ -0,0 +1,123 @@ + + + + + + + Test Slides Title That's Really Really Long and Would Never Really Be Used Exactly Like This + 2001Norman Walsh + + + +Welcome the audience + + +Foilgroup 1 + + +Introduce the foilgroup + + +Test Slides Title 1 + + +Tell a funny joke. Remember, I said a funny one. + + +... + + +Test Slides Title 2 +... + +this is a programlisting + + + +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting +this is a long programlisting + + + + +Foilgroup 2 + +Test Slides Title 1 +...This is a footnote. + + +Test Slides Title 2 +... + +this is a programlisting + + + + + + diff --git a/docbook/relaxng/website/.cvsignore b/docbook/relaxng/website/.cvsignore new file mode 100644 index 000000000..dffa87fdb --- /dev/null +++ b/docbook/relaxng/website/.cvsignore @@ -0,0 +1,7 @@ +semantic.cache +website-full.dtd +website-full.rnc +website-full.rng +website.dtd +website.rnc +website.rng diff --git a/docbook/relaxng/website/Makefile b/docbook/relaxng/website/Makefile new file mode 100644 index 000000000..5f6304702 --- /dev/null +++ b/docbook/relaxng/website/Makefile @@ -0,0 +1,50 @@ +VPATH=src + +.SUFFIXES: .rnc .rng .rnx .dtx .dtd +.PHONY: tests html + +DOCBOOK=../docbook +TOOLS=../tools +RNGFILES=$(wildcard build/*.rng) + +all: website.rng website.dtd website-full.rng website-full.dtd + +# ============================================================ +# +# N.B. We need an explicit dependency on src/*.rnc for each *.rng +# file because the build process produces an *output* RNC file +# in the current directory and that's not the one we want to +# depend on. +# +# That's also the reason for the curious sleep/touch pattern +# in the build rules. We want to make sure that the output RNC +# file is older than the output RNG file so that make doesn't +# always think it needs to rebuild the RNG file. +# +# If we could take "." out of VPATH, we wouldn't need to do this. + +website.rng: src/website.rnc +website-full.rng: src/website-full.rnc + +.rnc.rng: + $(MAKE) -C build $@ + perl $(TOOLS)/trimgrammar.pl -o ,$@ build/$@ + saxon ,$@ $(TOOLS)/trimgrammar.xsl $@ use.extensions=1 + trang $@ `basename $<` + sleep 2 + touch $@ + rm -f ,$@ + +.rng.rnx: + xsltproc -output $@ $(TOOLS)/rngdocxml.xsl $< + +.rnx.dtx: + xsltproc -output $@ $(TOOLS)/doc2dtd.xsl $< + +.dtx.dtd: + xsltproc -output $@ $(TOOLS)/xml2dtd.xsl $< + +# ============================================================ + +clean: + rm -f website* diff --git a/docbook/relaxng/website/build/.cvsignore b/docbook/relaxng/website/build/.cvsignore new file mode 100644 index 000000000..c38688200 --- /dev/null +++ b/docbook/relaxng/website/build/.cvsignore @@ -0,0 +1 @@ +*.rng diff --git a/docbook/relaxng/website/build/Makefile b/docbook/relaxng/website/build/Makefile new file mode 100644 index 000000000..a01a3a8cf --- /dev/null +++ b/docbook/relaxng/website/build/Makefile @@ -0,0 +1,22 @@ +VPATH=../src + +TOOLS=../../tools + +AUGMENT=$(TOOLS)/augment.xsl +INCLUDE=$(TOOLS)/include.xsl +CLEANUP=$(TOOLS)/cleanup.pl + +.SUFFIXES: .rng .rnc + +all: + @echo Make what? + +.rnc.rng: + trang -O rng $< $@ + saxon $@ $(INCLUDE) ,$@ use.extensions=1 + saxon ,$@ $(AUGMENT) $@ use.extensions=1 + perl -i $(CLEANUP) $@ + rm -f ,$@ + +clean: + rm -f *.rng diff --git a/docbook/relaxng/website/src/rddl.rnc b/docbook/relaxng/website/src/rddl.rnc new file mode 100644 index 000000000..d7fe37dab --- /dev/null +++ b/docbook/relaxng/website/src/rddl.rnc @@ -0,0 +1,50 @@ +# This file is part of Website NG + +# This schema is a reinterpretation of "Website" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Website 2.6.0 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +namespace rddl = "http://www.rddl.org/" +namespace xlink = "http://www.w3.org/1999/xlink" +default namespace = "http://docbook.org/ns/docbook" + +[ + db:refname [ "rddl:resource" ] + db:refpurpose [ "A RDDL resource" ] +] +div { + + rddl.resource.type.attribute = db.xlink.type.attribute + rddl.resource.arcrole.attribute = db.xlink.arcrole.attribute + rddl.resource.role.attribute = db.xlink.role.attribute + rddl.resource.href.attribute = db.xlink.href.attribute + rddl.resource.title.attribute = db.xlink.title.attribute? + rddl.resource.show.attribute = attribute xlink:show { "none" } + rddl.resource.actuate.attribute = attribute xlink:actuate { "none" } + + # role default = "http://www.rddl.org/#resource" + + rddl.resource.attlist = + rddl.resource.type.attribute? + & rddl.resource.arcrole.attribute? + & rddl.resource.role.attribute? + & rddl.resource.href.attribute? + & rddl.resource.title.attribute? + & rddl.resource.show.attribute? + & rddl.resource.actuate.attribute? + & db.common.idreq.attributes + + rddl.resource = + element rddl:resource { + rddl.resource.attlist, + db.all.inlines* + } +} diff --git a/docbook/relaxng/website/src/webpages.rnc b/docbook/relaxng/website/src/webpages.rnc new file mode 100644 index 000000000..677093b87 --- /dev/null +++ b/docbook/relaxng/website/src/webpages.rnc @@ -0,0 +1,289 @@ +# This file is part of Website NG + +# This schema is a reinterpretation of "Website" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Website 2.6.0 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +default namespace = "http://docbook.org/ns/docbook" + +[ + db:refname [ "webpage" ] + db:refpurpose [ "A page in a website" ] +] +div { + + ws.webpage.role.attribute = attribute role { text } + ws.webpage.navto.attribute = attribute navto { "yes" | "no" } + + ws.webpage.optional.components = db.section* + ws.webpage.required.components = db.section+ + + ws.webpage.attlist = + ws.webpage.role.attribute? + & ws.webpage.navto.attribute? + & db.common.idreq.attributes + + ws.webpage = + element webpage { + ws.webpage.attlist, + ws.config*, + ws.head, + ((db.all.blocks+, + ws.webpage.optional.components) + | ws.webpage.required.components), + db.appendix*, + db.bibliography* + } +} + +# ============================================================ + +ws.head.optional.components = + db.abstract + | db.author + | db.copyright + | db.edition + | ws.headlink + | ws.meta + | ws.script + | ws.style + | db.revhistory + +[ + db:refname [ "head" ] + db:refpurpose [ "The head in a webpage" ] +] +div { + + ws.head.role.attribute = attribute role { text } + + ws.head.attlist = + ws.head.role.attribute? + & db.common.attributes + + ws.head = + element head { + ws.head.attlist, + db.title, + db.titleabbrev?, + db.subtitle?, + ws.summary?, + ws.keywords?, + ws.head.optional.components* + } +} + +# ============================================================ + +[ + db:refname [ "meta" ] + db:refpurpose [ "The meta in a webpage head" ] +] +div { + + ws.meta.role.attribute = attribute role { text } + ws.meta.http-equiv.attribute = attribute http-equiv { text } + ws.meta.name.attribute = attribute name { text } + ws.meta.content.attribute = attribute content { text } + + ws.meta.attlist = + ws.meta.role.attribute? + & (ws.meta.http-equiv.attribute | ws.meta.name.attribute) + & ws.meta.content.attribute + & db.common.attributes + + ws.meta = + element meta { + ws.meta.attlist, + empty + } +} + +# ============================================================ + +[ + db:refname [ "link" ] + db:refpurpose [ "A link in the head of a webpage" ] +] +div { + + ws.headlink.role.attribute = attribute role { text } + + ws.headlink.href.attribute = attribute href { text } + ws.headlink.media.attribute = attribute media { text } + ws.headlink.name.attribute = attribute name { text } + ws.headlink.rel.attribute = attribute rel { text } + ws.headlink.rev.attribute = attribute rev { text } + ws.headlink.src.attribute = attribute src { text } + ws.headlink.title.attribute = attribute title { text } + ws.headlink.type.attribute = attribute type { text } + + ws.headlink.attlist = + ws.headlink.role.attribute? + & ws.headlink.href.attribute? + & ws.headlink.media.attribute? + & ws.headlink.name.attribute? + & ws.headlink.rel.attribute? + & ws.headlink.rev.attribute? + & ws.headlink.src.attribute? + & ws.headlink.title.attribute? + & ws.headlink.type.attribute? + & db.common.attributes + + ws.headlink = + element link { + ws.headlink.attlist, + empty + } +} + +# ============================================================ + +[ + db:refname [ "script" ] + db:refpurpose [ "A script in the head of a webpage" ] +] +div { + + ws.script.role.attribute = attribute role { text } + + ws.script.src.attribute = attribute src { text } + ws.script.language.attribute = attribute language { text } + ws.script.type.attribute = attribute type { text } + + ws.script.attlist = + ws.script.role.attribute? + & ws.script.language.attribute? + & ws.script.type.attribute? + & db.common.attributes + + ws.script = + element script { + ws.script.attlist, + (ws.script.src.attribute | text) + } +} + +# ============================================================ + +[ + db:refname [ "style" ] + db:refpurpose [ "A style section in the head of a webpage" ] +] +div { + + ws.style.role.attribute = attribute role { text } + + ws.style.src.attribute = attribute src { text } + ws.style.type.attribute = attribute type { text } + + ws.style.attlist = + ws.style.role.attribute? + & ws.style.type.attribute? + & db.common.attributes + + ws.style = + element style { + ws.style.attlist, + (ws.style.src.attribute | text) + } +} + +# ============================================================ + +[ + db:refname [ "style" ] + db:refpurpose [ "A style section in the head of a webpage" ] +] +div { + + ws.config.role.attribute = attribute role { text } + + ws.config.param.attribute = attribute param { text } + ws.config.value.attribute = attribute value { text } + ws.config.altvalue.attribute = attribute altvalue { text } + + ws.config.attlist = + ws.config.role.attribute? + & ws.config.param.attribute? + & ws.config.value.attribute? + & ws.config.altvalue.attribute? + & db.common.attributes + + ws.config = + element config { + ws.config.attlist, + empty + } +} + +# ============================================================ + +[ + db:refname [ "summary" ] + db:refpurpose [ "A short summary of a webpage" ] +] +div { + + ws.summary.role.attribute = attribute role { text } + + ws.summary.attlist = + ws.summary.role.attribute? + & db.common.attributes + + ws.summary = + element summary { + ws.summary.attlist, + db.all.inlines* + } +} + +# ============================================================ + +[ + db:refname [ "keywords" ] + db:refpurpose [ "The keywords for a webpage" ] +] +div { + + ws.keywords.role.attribute = attribute role { text } + + ws.keywords.attlist = + ws.keywords.role.attribute? + & db.common.attributes + + ws.keywords = + element keywords { + ws.keywords.attlist, + text + } +} + +# ============================================================ + +[ + db:refname [ "webtoc" ] + db:refpurpose [ "Marks the location of a TOC in a webpage" ] +] +div { + + ws.webtoc.role.attribute = attribute role { text } + + ws.webtoc.attlist = + ws.webtoc.role.attribute? + & db.common.attributes + + ws.webtoc = + element webtoc { + ws.webtoc.attlist, + empty + } +} diff --git a/docbook/relaxng/website/src/website-full.rnc b/docbook/relaxng/website/src/website-full.rnc new file mode 100644 index 000000000..778ffcfad --- /dev/null +++ b/docbook/relaxng/website/src/website-full.rnc @@ -0,0 +1,24 @@ +# This file is part of Website NG + +# This schema is a reinterpretation of "Website" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Website 2.6.0 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +default namespace = "http://docbook.org/ns/docbook" + +include "../../docbook/src/docbook.rnc" { + start = ws.webpage + db.all.blocks |= ws.webtoc +} + +include "webpages.rnc" +include "rddl.rnc" +include "../../docbook/src/htmlform.rnc" diff --git a/docbook/relaxng/website/src/website.rnc b/docbook/relaxng/website/src/website.rnc new file mode 100644 index 000000000..3ee5a7d82 --- /dev/null +++ b/docbook/relaxng/website/src/website.rnc @@ -0,0 +1,24 @@ +# This file is part of Website NG + +# This schema is a reinterpretation of "Website" in the NG framework. +# +# Author: Norman Walsh, +# Source: Derived from Website 2.6.0 +# Release: $Id$ +# +# ====================================================================== + +namespace ctrl = "http://nwalsh.com/xmlns/schema-control/" +namespace rng = "http://relaxng.org/ns/structure/1.0" +namespace s = "http://www.ascc.net/xml/schematron" +namespace db = "http://docbook.org/ns/docbook" +default namespace = "http://docbook.org/ns/docbook" + +include "../../simple/src/sdocbook.rnc" { + start = ws.webpage + db.all.blocks |= ws.webtoc +} + +include "webpages.rnc" +include "rddl.rnc" +include "../../docbook/src/htmlform.rnc" diff --git a/docbook/relaxng/website/tests/example.xml b/docbook/relaxng/website/tests/example.xml new file mode 100644 index 000000000..ba44112cd --- /dev/null +++ b/docbook/relaxng/website/tests/example.xml @@ -0,0 +1,11 @@ + + + +Test <emphasis>1</emphasis> +Test 1 Page + +This is just a test page. + + + diff --git a/docbook/relaxng/website/tests/form.xml b/docbook/relaxng/website/tests/form.xml new file mode 100644 index 000000000..feb30cfe5 --- /dev/null +++ b/docbook/relaxng/website/tests/form.xml @@ -0,0 +1,22 @@ + + + +Form Test +Form Test Page + +This is just a form test page. + +An input field: . +A label: label. +A button: This Button. +Selection: +foo +bar +baz +. + +. + + +