From: Michael Smith Date: Wed, 10 Oct 2007 08:54:48 +0000 (+0000) Subject: Added some DocBook XML source files for use with the "make check" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb3445322ec1f3c7a89fe3472eea335904ca764e;p=docbook-dsssl Added some DocBook XML source files for use with the "make check" target. The makefile just causes these source file to be copied over from the releasetools directory. These are useful for downstream packagers in doing smoketesting. --- diff --git a/xsl/tests/Makefile b/xsl/tests/Makefile new file mode 100644 index 000000000..ec8a0157c --- /dev/null +++ b/xsl/tests/Makefile @@ -0,0 +1,12 @@ +# $Id$ + +all: refentry.007.xml refentry.007.ns.xml + +refentry.007.xml: ../../releasetools/refentry.007.xml + cp $< $@ + +refentry.007.ns.xml: ../../releasetools/refentry.007.ns.xml + cp $< $@ + +clean: + $(RM) refentry.007.xml refentry.007.ns.xml diff --git a/xsl/tests/refentry.007.ns.xml b/xsl/tests/refentry.007.ns.xml new file mode 100644 index 000000000..f66d6e0d3 --- /dev/null +++ b/xsl/tests/refentry.007.ns.xml @@ -0,0 +1,325 @@ + +Unit Test: refentry.007 + +$Id: refentry.007.xml 7282 2007-08-23 09:27:01Z xmldoc $ +NormanWalsh
ndw@nwalsh.com
+
+Reference + + + + + NormanWalshndw@nwalsh.com + Wrote the original version of this document. + + Michael(tm)SmithAdded a bunch of test cases.smith@sideshowbarker.net + + + 2003 + Norman Walsh + + + 2006 + Michael(tm) Smith + + + This file is a product of the DocBook Project. + + + Share and share alike. + + + +FirstName +SecondName +Purpose for FirstName + + + +ThirdName +Purpose for ThirdName + + + + + + + #include <varargs.h> +#include <mouteyh.h> +#include <qlmppzj.h> + + float rand + + + + + int max + + + + + int idiv + int n + int m + + + + Another. + + + + void qsort + void *dataptr[] + int left + int right + int (*comp) + void *, void * + + + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + + foo_sometype1 foo_frob_parm5 + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + + foo_sometype1 foo_frob_parm5 + + + + +Description + +This is a minimal RefEntry. + +The following is a Variablelist with a title. +My variablelist + + + varlistentry term 1 + some listitem text + + + varlistentry term 2 + some more listitem text + + + +Subsection + +This is a minimal RefEntry. + +The following is a Variablelist with a title and a nested variablelist + + + + glossentry term 1 + some glossdef text + + + glossentry term 2 + + + + nested variablelist term 1 + some variablelist text + + + nested variablelist term 2 + some more variablelist text + + + + + + + +Sub-subsection + +This is a minimal RefEntry. + + + + +More Description + +This is a not-so minimal RefEntry. + +This is a screen [break here] +that starts with a line of space. [break here] +And it ends with a line of space. + + +normal paragraph here + +This is a screen [break here] +that does not start with a line of space. [break here] +And does not end with a line of space. + +This is a normal paragraph that contains a screen. +This is a screen within a normal paragraph [break here] +that does not start with a line of space. [break here] +And does not end with a line of space but is followed +by a line of space. + + +This is another normal paragraph that contains a screen. +This is a screen within a normal paragraph [break here] +that does not start with a line of space. [break here] +And does not end with a line of space and is not followed +by a line of space. + +This is another normal paragraph that contains a screen. + +This is a screen within a normal paragraph [break here] +that starts with a line of space. [break here] +And ends with a line of space but is not followed by a line of space. + + +This is another normal paragraph that contains a screen. + +This is a screen within a normal paragraph [break here] +that starts with a line of space. [break here] +And ends with a line of space and is followed by a line of space. + + + +This is another normal paragraph that contains a screen. + + +This is a screen within a normal paragraph [break here] +that starts with a 2 lines of space. [break here] +And ends with 3 lines of space and is followed by a line of space. + + + + + +This paragraph contains an itemizedlist with a title. The title +is “Mrignkwolmcng”. +Mrignkwolmcng + + + itemizedlist listitem 1 + + + itemizedlist listitem 2 + + + +This is some useless text that follows the “Mrignkwolmcng” orderedlist +in the same para. + +The following is a Variablelist with a title and with a nested itemizedlist. +My variablelist + + + varlistentry term 1 + + nested itemizedlist + + + itemizedlist listitem 1 + + + itemizedlist listitem 2 + + + + + + varlistentry term 2 + some more listitem text + + + + +The following is a Variablelist with a title and with a +nested Varlistentry that contains multiple Terms +My nested-multi-term-per-varlistentry variablelist + + + Varlistentry term 1 + + + + varlistentry term 1.1 + varlistentry term 1.2 + varlistentry term 1.3 + All 'bout terms 1.1, 1.2, and 1.3 + + + + + + + varlistentry term 2 + some more listitem text + + + + +Subsection + +This is a minimal RefEntry. + + + +Even More Description + +This is an even less minimal RefEntry. + +This is a paragraph. It contains the following segmentedlist, +titled “Gibbererish”, with several segtitle elements. + + + Floober + Buugler + Sstangooo + Borobinda + + Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda + Mondorotoluafu + Ganafutralinga + Patagularamakundra + + + Cadraracondar + Hentirotomaambu + BdomentriolaiaBdomentriolaiaBdomentriolaia + Candamalaturuanio + + +This is some text that follows the segementedlist within the same +paragraph. The next part of this same paragraph is an +important admonition. + + It is very important that you read this. That’s why it stands + out the way that it does. + + + +This is a para with a footnote + Stuff here This is a program listing +that's two lines long. + and stuff after the +footnote + + + + +
diff --git a/xsl/tests/refentry.007.xml b/xsl/tests/refentry.007.xml new file mode 100644 index 000000000..452137631 --- /dev/null +++ b/xsl/tests/refentry.007.xml @@ -0,0 +1,340 @@ + + + + +Unit Test: refentry.007 +$Id: refentry.007.xml 7282 2007-08-23 09:27:01Z xmldoc $ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +Reference + + + + + NormanWalsh + ndw@nwalsh.com + + Wrote the original version of this document. + + + + Added a bunch of test cases. + Michael(tm)Smith + smith@sideshowbarker.net + + + + 2003 + Norman Walsh + + + 2006 + Michael(tm) Smith + + + This file is a product of the DocBook Project. + + + Share and share alike. + + + +FirstName +SecondName +Purpose for FirstName + + + +ThirdName +Purpose for ThirdName + + + + + + + #include <varargs.h> +#include <mouteyh.h> +#include <qlmppzj.h> + + float rand + + + + + int max + + + + + int idiv + int n + int m + + + + Another. + + + + void qsort + void *dataptr[] + int left + int right + int (*comp) + void *, void * + + + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + + foo_sometype1 foo_frob_parm5 + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + + foo_sometype1 foo_frob_parm5 + + + + + +Description +This is a minimal RefEntry. + +The following is a Variablelist with a title. + + My variablelist + + varlistentry term 1 + some listitem text + + + varlistentry term 2 + some more listitem text + + + + +Subsection +This is a minimal RefEntry. + +The following is a Variablelist with a title and a nested variablelist + + My glosslist + + glossentry term 1 + some glossdef text + + + glossentry term 2 + + + + nested variablelist term 1 + some variablelist text + + + nested variablelist term 2 + some more variablelist text + + + + + + + + +Sub-subsection +This is a minimal RefEntry. + + + + + +More Description +This is a not-so minimal RefEntry. + +This is a screen [break here] +that starts with a line of space. [break here] +And it ends with a line of space. + + +normal paragraph here + +This is a screen [break here] +that does not start with a line of space. [break here] +And does not end with a line of space. + +This is a normal paragraph that contains a screen. +This is a screen within a normal paragraph [break here] +that does not start with a line of space. [break here] +And does not end with a line of space but is followed +by a line of space. + + +This is another normal paragraph that contains a screen. +This is a screen within a normal paragraph [break here] +that does not start with a line of space. [break here] +And does not end with a line of space and is not followed +by a line of space. + +This is another normal paragraph that contains a screen. + +This is a screen within a normal paragraph [break here] +that starts with a line of space. [break here] +And ends with a line of space but is not followed by a line of space. + + +This is another normal paragraph that contains a screen. + +This is a screen within a normal paragraph [break here] +that starts with a line of space. [break here] +And ends with a line of space and is followed by a line of space. + + + +This is another normal paragraph that contains a screen. + + +This is a screen within a normal paragraph [break here] +that starts with a 2 lines of space. [break here] +And ends with 3 lines of space and is followed by a line of space. + + + + + +This paragraph contains an itemizedlist with a title. The title +is “Mrignkwolmcng”. + + Mrignkwolmcng + + itemizedlist listitem 1 + + + itemizedlist listitem 2 + + + +This is some useless text that follows the “Mrignkwolmcng” orderedlist +in the same para. + +The following is a Variablelist with a title and with a nested itemizedlist. + + My variablelist + + varlistentry term 1 + + + nested itemizedlist + + itemizedlist listitem 1 + + + itemizedlist listitem 2 + + + + + + varlistentry term 2 + some more listitem text + + + + +The following is a Variablelist with a title and with a +nested Varlistentry that contains multiple Terms + + My nested-multi-term-per-varlistentry variablelist + + Varlistentry term 1 + + + + varlistentry term 1.1 + varlistentry term 1.2 + varlistentry term 1.3 + All 'bout terms 1.1, 1.2, and 1.3 + + + + + + + varlistentry term 2 + some more listitem text + + + + + +Subsection +This is a minimal RefEntry. + + + + +Even More Description +This is an even less minimal RefEntry. + +This is a paragraph. It contains the following segmentedlist, +titled “Gibbererish”, with several segtitle elements. + + Gibbererish + Floober + Buugler + Sstangooo + Borobinda + + Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda Bamalalaboonda + Mondorotoluafu + Ganafutralinga + Patagularamakundra + + + Cadraracondar + Hentirotomaambu + BdomentriolaiaBdomentriolaiaBdomentriolaia + Candamalaturuanio + + +This is some text that follows the segementedlist within the same +paragraph. The next part of this same paragraph is an +important admonition. + + It is very important that you read this. That’s why it stands + out the way that it does. + + + +This is a para with a footnote + Stuff here This is a program listing +that's two lines long. + and stuff after the +footnote + + + + +