From: Norman Walsh Date: Sun, 6 Jan 2002 16:08:38 +0000 (+0000) Subject: More hacking---I really need to build a decent test suite X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eed70811ab3509dc772e88050cae37d45aa226b;p=docbook-dsssl More hacking---I really need to build a decent test suite --- diff --git a/testdocs/Makefile b/testdocs/Makefile index d0292631b..82d04d54f 100644 --- a/testdocs/Makefile +++ b/testdocs/Makefile @@ -77,10 +77,14 @@ ifeq ($(FORMATTER),tex) else ifeq ($(FORMATTER),fop) $(XSLT) $< $(XSLFO) $@ fop.extensions=1 $(STYLEOPT) +else +ifeq ($(FORMATTER),xep) + $(XSLT) $< $(XSLFO) $@ xep.extensions=1 $(STYLEOPT) else $(XSLT) $< $(XSLFO) $@ $(STYLEOPT) endif endif +endif %.pdf : %.fo ifeq ($(FORMATTER),tex) diff --git a/testdocs/book.xml b/testdocs/book.xml index 6b2791e64..e5eece04b 100644 --- a/testdocs/book.xml +++ b/testdocs/book.xml @@ -12,6 +12,11 @@ book keyword2 +SomeCorp +JaneDoe + + + Some legal notice. Some legal notice. Some legal notice. @@ -111,9 +127,11 @@ Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. part keyword1 part keyword2 + Part One Title @@ -129,7 +147,16 @@ Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. Section <anchor id="stestfoo"/>Tests -First Sect1 + + + + +Some legal notice. Some legal notice. Some legal notice. + + + +First Sect1 + Paragraph. See .
Test Figure This is a diff --git a/testdocs/bookart.xml b/testdocs/bookart.xml new file mode 100644 index 000000000..a1ddb94f1 --- /dev/null +++ b/testdocs/bookart.xml @@ -0,0 +1,87 @@ + + + + + +Book Title +Book Subtitle + + +
First Article + +
+ The Duck + + + + + + + + The DocBook: TDG Duck + +
+ +
+ +
Second Article + +
+ The Duck + + + + + + + + The DocBook: TDG Duck + +
+ +
+ +
Third Article + +
+ The Duck + + + + + + + + The DocBook: TDG Duck + +
+ +
+ +
diff --git a/testdocs/bridgehead.xml b/testdocs/bridgehead.xml new file mode 100644 index 000000000..504c12b1a --- /dev/null +++ b/testdocs/bridgehead.xml @@ -0,0 +1,38 @@ + + + +
+ +Sections + + +A test paragraph. + + + sect1 title + sect1 subtitle + + This is a test paragraph. + + This is a sect1 bridgehead + + This is a test paragraph. + + + first sect2 title + Please read + + This is an implied sect3 bridgehead + + This is a test paragraph. + + + + + second sect2 title + + + +
diff --git a/testdocs/faq.xml b/testdocs/faq.xml index fcaff6bcb..213c192fc 100644 --- a/testdocs/faq.xml +++ b/testdocs/faq.xml @@ -1,7 +1,7 @@ + PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
An xref to a Question @@ -12,6 +12,7 @@ + Question one. @@ -39,4 +40,105 @@ See + + + + + + Blah blah blah. + + + + <filename + moreinfo="none">file.name</filename> + // Hello, World + + + <filename + moreinfo="none">file2.name</filename> + // Goodbye, World + + + + + + + QandA Title +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. + Division 1 + + + Blah blah blah. + + + + <filename + moreinfo="none">file.name</filename> + // Hello, World + + + <filename + moreinfo="none">file2.name</filename> + // Goodbye, World + + + + + Division 2 +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. +Some introductory preamble. Some introductory preamble. + Division 2.1 + + + Blah blah blah. + + + + <filename + moreinfo="none">file.name</filename> + // Hello, World + + + <filename + moreinfo="none">file2.name</filename> + // Goodbye, World + + + + + Division 2.2 + + + Blah blah blah. + + + + <filename + moreinfo="none">file.name</filename> + // Hello, World + + + <filename + moreinfo="none">file2.name</filename> + // Goodbye, World + + + + + + +
diff --git a/testdocs/figures.xml b/testdocs/figures.xml index be9ce7ded..2615981db 100644 --- a/testdocs/figures.xml +++ b/testdocs/figures.xml @@ -17,14 +17,14 @@ diff --git a/testdocs/glosstest.xml b/testdocs/glosstest.xml new file mode 100644 index 000000000..9b591f812 --- /dev/null +++ b/testdocs/glosstest.xml @@ -0,0 +1,35 @@ + +GPS"> +TTL"> +]> + + +Test Glossary + + +Some Text + +A few references to gloss terms: +1TBS, abbrev, +back door, and +backbone cabal. + +Repeated terms: back door and +abbrev.. + + + + + + +irrelevant + + + + + + + \ No newline at end of file diff --git a/testdocs/indexterms.xml b/testdocs/indexterms.xml new file mode 100644 index 000000000..e7beb73f6 --- /dev/null +++ b/testdocs/indexterms.xml @@ -0,0 +1,28 @@ + + + +Index Terms + + +Server machine minimum required software + +System requirements +Software + + + + + +Foo + + + + +foo + + + +
+ +
diff --git a/testdocs/jargon.xml b/testdocs/jargon.xml new file mode 100644 index 000000000..df83664b5 --- /dev/null +++ b/testdocs/jargon.xml @@ -0,0 +1,272 @@ + + + + +EricRaymond +Jargon File 4.2.3 (abridged) +Just some test data + + +0 + + +0 + +Numeric zero, as opposed to the letter `O' (the 15th letter of +the English alphabet). In their unmodified forms they look a lot +alike, and various kluges invented to make them visually distinct have +compounded the confusion. If your zero is center-dotted and letter-O +is not, or if letter-O looks almost rectangular but zero looks more +like an American football stood on end (or the reverse), you're +probably looking at a modern character display (though the dotted zero +seems to have originated as an option on IBM 3270 controllers). If +your zero is slashed but letter-O is not, you're probably looking at +an old-style ASCII graphic set descended from the default typewheel on +the venerable ASR-33 Teletype (Scandinavians, for whom /O is a letter, +curse this arrangement). (Interestingly, the slashed zero long +predates computers; Florian Cajori's monumental "A History of +Mathematical Notations" notes that it was used in the twelfth and +thirteenth centuries.) If letter-O has a slash across it and the zero +does not, your display is tuned for a very old convention used at IBM +and a few other early mainframe makers (Scandinavians curse this +arrangement even more, because it means two of their letters collide). +Some Burroughs/Unisys equipment displays a zero with a reversed +slash. Old CDC computers rendered letter O as an unbroken oval and 0 +as an oval broken at upper right and lower left. And yet another +convention common on early line printers left zero unornamented but +added a tail or hook to the letter-O so that it resembled an inverted +Q or cursive capital letter-O (this was endorsed by a draft ANSI +standard for how to draw ASCII characters, but the final standard +changed the distinguisher to a tick-mark in the upper-left corner). +Are we sufficiently confused yet? + + + + +1TBS + + + +n + +The "One True Brace Style" +indent style + + + + +120 reset + + +wuhn-twen'tee ree'set +n + +[from 120 volts, U.S. wall voltage] To cycle power on a machine +in order to reset or unjam it. Compare Big Red Switch, +power cycle. + + + + +2 + +infix. In translation software written by hackers, infix 2 often +represents the syllable to with the connotation +translate to: as in dvi2ps (DVI to PostScript), int2string (integer +to string), and texi2roff (Texinfo to [nt]roff). Several versions of a +joke have floated around the internet in which some idiot programmer +fixes the Y2K bug by changing all the Y's in something to K's, as in +Januark, Februark, etc. + + + + +@-party + + +at'par`tee +n + +[from the @-sign in an Internet +address] (alt. `@-sign party' at'si:n +par`tee) A semi-closed party thrown for hackers at a +science-fiction convention (esp. the annual World Science Fiction +Convention or "Worldcon"); one must have a {network address} to get +in, or at least be in company with someone who does. One of the most +reliable opportunities for hackers to meet face to face with people +who might otherwise be represented by mere phosphor dots on their +screens. Compare boink. + +The first recorded @-party was held at the Westercon (a U.S. +western regional SF convention) over the July 4th weekend in 1980. +It is not clear exactly when the canonical @-party venue shifted to the +Worldcon but it had certainly become established by Constellation in 1983. +Sadly, the @-party tradition has been in decline since about 1996, mainly +because having an @-address no longer functions as an effective lodge pin. + + + + + +A + + +abbrev + + +*-breev' +*-brev' +n + +Common abbreviation for abbreviation. + + + + +ABEND + + +a'bend +*-bend' +n + +[ABnormal END] 1. Abnormal +termination (of software); {crash}; {lossage}. Derives from an error +message on the IBM 360; used jokingly by hackers but seriously mainly +by {code grinder}s. Usually capitalized, but may appear as `abend'. +Hackers will try to persuade you that ABEND is called `abend' because +it is what system operators do to the machine late on Friday when +they want to call it a day, and hence is from the German `Abend' = +`Evening'. 2. [alt.callahans] Absent By Enforced Net Deprivation - +used in the subject lines of postings warning friends of an imminent +loss of Internet access. (This can be because of computer downtime, +loss of provider, moving or illness.) Variants of this also appear: +ABVND = `Absent By Voluntary Net Deprivation' and ABSEND = `Absent By +Self-Enforced Net Deprivation' have been sighted. + + + + +ACK + + +ak +interj + +1. [common; from the ASCII mnemonic for +0000110] Acknowledge. Used to register one's presence (compare +mainstream Yo!emphasis>). An appropriate response +to {ping} or {ENQ}. 2. [from the comic strip "Bloom County"] An +exclamation of surprised disgust, esp. in "Ack pffft!" Semi-humorous. +Generally this sense is not spelled in caps (ACK) and is distinguished +by a following exclamation point. 3. Used to politely interrupt +someone to tell them you understand their point (see {NAK}). Thus, for +example, you might cut off an overly long explanation with "Ack. Ack. +Ack. I get it now". 4. An affirmative. "Think we ought to ditch that +damn NT server for a Linux box?" "ACK!" + +There is also a usage "ACK?" (from sense 1) meaning "Are you +there?", often used in email when earlier mail has produced no reply, +or during a lull in {talk mode} to see if the person has gone away +(the standard humorous response is of course {NAK} (sense 1), i.e., +"I'm not here"). + + + + +B + + +B5 + + + + +[common] Abbreviation for "Babylon 5", a science-fiction +TV series as revered among hackers as was the original Star Trek. + + + + + +back door + + +n + +[common] A hole in the security of a system +deliberately left in place by designers or maintainers. The motivation +for such holes is not always sinister; some operating systems, for +example, come out of the box with privileged accounts intended for use +by field service technicians or the vendor's maintenance programmers. +Syn. {trap door}; may also be called a `wormhole'. See also {iron box}, +{cracker}, {worm}, {logic bomb}. + +Historically, back doors have often lurked in systems longer than +anyone expected or planned, and a few have become widely known. Ken +Thompson's 1983 Turing Award lecture to the ACM admitted the existence +of a back door in early Unix versions that may have qualified as the +most fiendishly clever security hack of all time. In this scheme, the +C compiler contained code that would recognize when the `login' command +was being recompiled and insert some code recognizing a password chosen +by Thompson, giving him entry to the system whether or not an account +had been created for him. + +Normally such a back door could be removed by removing it from the +source code for the compiler and recompiling the compiler. But to +recompile the compiler, you have to use the compiler -- so Thompson +also arranged that the compiler would recognize when it was compiling a +version of itself, and insert into the recompiled compiler the code to +insert into the recompiled `login' the code to allow Thompson entry -- +and, of course, the code to recognize itself and do the whole thing again +the next time around! And having done this once, he was then able to +recompile the compiler from the original sources; the hack perpetuated +itself invisibly, leaving the back door in place and active but with no +trace in the sources. + +The talk that suggested this truly moby hack was published as +"Reflections on Trusting Trust", "Communications of the ACM 27", 8 (August +1984), pp. 761-763 (text available at `http://www.acm.org/classics'). +Ken Thompson has since confirmed that this hack was implemented and that +the Trojan Horse code did appear in the login binary of a Unix Support +group machine. Ken says the crocked compiler was never distributed. +Your editor has heard two separate reports that suggest that the crocked +login did make it out of Bell Labs, notably to BBN, and that it enabled +at least one late-night login across the network by someone using the +login name `kt'. + + + + + +backbone cabal + + +n + +A group of large-site administrators who +pushed through the {Great Renaming} and reined in the chaos of {Usenet} +during most of the 1980s. During most of its lifetime, the Cabal (as +it was sometimes capitalized) steadfastly denied its own existence; +it was almost obligatory for anyone privy to their secrets to respond +"There is no Cabal" whenever the existence or activities of the group +were speculated on in public. + +The result of this policy was an attractive aura of mystery. Even +a decade after the cabal {mailing list} disbanded in late 1988 following +a bitter internal catfight, many people believed (or claimed to believe) +that it had not actually disbanded but only gone deeper underground with +its power intact. + +This belief became a model for various paranoid theories about +various Cabals with dark nefarious objectives beginning with taking over +the Usenet or Internet. These paranoias were later satirized in ways +that took on a life of their own. See {Eric Conspiracy} for one example. + +See {NANA} for the subsequent history of "the Cabal". + + + + diff --git a/testdocs/lists.xml b/testdocs/lists.xml index bd2b38c83..b1febd550 100644 --- a/testdocs/lists.xml +++ b/testdocs/lists.xml @@ -25,7 +25,7 @@ Level 5 - Level 6 + Level 6, override=13 @@ -39,6 +39,31 @@ + + Level 1 + + Level 2 + + Level 3 + + Level 4 + + Level 5 + + Level 6, override=round + + + + + + + + + + + + + Level 1, numeration="loweralpha" @@ -116,5 +141,23 @@ outrageous humor, no seasonal cards. +State Capitals +State +Capital +AlabamaMontgomery +AlaskaAnchorage +ArkansasLittle Rock + + +State Capitals + + +State +Capital +AlabamaMontgomery +AlaskaAnchorage +ArkansasLittle Rock + + diff --git a/testdocs/mlang.pl b/testdocs/mlang.pl index 2658295e4..509c1f702 100644 --- a/testdocs/mlang.pl +++ b/testdocs/mlang.pl @@ -35,6 +35,7 @@ my %languages = ('af' => 'Afrikaans', 'en' => 'English', 'es' => 'Spanish', 'et' => 'Estonian', + 'eu' => 'Basque', 'fi' => 'Finnish', 'fr' => 'French', 'hu' => 'Hungarian', diff --git a/testdocs/procedures.xml b/testdocs/procedures.xml index 2d846e02d..05eb10754 100644 --- a/testdocs/procedures.xml +++ b/testdocs/procedures.xml @@ -65,5 +65,11 @@ I'm on the fourth step, Johnny. + +Do the following: +One step? + + + diff --git a/testdocs/reference.xml b/testdocs/reference.xml index daf821e7c..87476f503 100644 --- a/testdocs/reference.xml +++ b/testdocs/reference.xml @@ -5,8 +5,16 @@ A Test Reference + +What about an xref to a refentry: +. +What about an xref to a refentry: +. +What about an xref to a refentry: +. + - + Minimal Test of a minimal RefEntry @@ -18,7 +26,11 @@ - + + +Also Minimal Title +3 + Also Minimal Another test of a minimal RefEntry @@ -30,4 +42,21 @@ + + +Fred +3 + + +Less Minimal +Even Less Minimal +Test of a minimal RefEntry + + + +Description +This is a minimal RefEntry. + + + diff --git a/testdocs/sections.xml b/testdocs/sections.xml index 504c12b1a..4f7da6eb5 100644 --- a/testdocs/sections.xml +++ b/testdocs/sections.xml @@ -1,38 +1,180 @@ - -
- -Sections - + + + Section Tests + -A test paragraph. + Numbered Sections - - sect1 title - sect1 subtitle + Section 1 + blah. + Section 1.1 + blah. + Section 1.1.1 + blah. + Section 1.1.1.1 + blah. + Section 1.1.1.1.1 + blah. + + Section 1.1.1.1.2 + blah. + + Section 1.1.1.1.3 + blah. + + + Section 1.1.1.2 + blah. + + Section 1.1.1.3 + blah. + + + Section 1.1.2 + blah. + + Section 1.1.3 + blah. + + + Section 1.2 + blah. + + Section 1.3 + blah. + + + Section 2 + blah. + Section 2.1 + blah. + Section 2.1.1 + blah. + Section 2.1.1.1 + blah. + Section 2.1.1.1.1 + blah. + + Section 2.1.1.1.2 + blah. + + Section 2.1.1.1.3 + blah. + + + Section 2.1.1.2 + blah. + + Section 2.1.1.3 + blah. + + + Section 2.1.2 + blah. + + Section 2.1.3 + blah. + + + Section 2.2 + blah. + + Section 2.3 + blah. + + + Section 3 + blah. + + - This is a test paragraph. + Recursive Sections +
Section 1 + blah. +
Section 1.1 + blah. +
Section 1.1.1 + blah. +
Section 1.1.1.1 + blah. +
Section 1.1.1.1.1 + blah. +
+
Section 1.1.1.1.2 + blah. +
+
Section 1.1.1.1.3 + blah. +
+
+
Section 1.1.1.2 + blah. +
+
Section 1.1.1.3 + blah. +
+
+
Section 1.1.2 + blah. +
+
Section 1.1.3 + blah. +
+
+
Section 1.2 + blah. +
+
Section 1.3 + blah. +
+
+
Section 2 + blah. +
Section 2.1 + blah. +
Section 2.1.1 + blah. +
Section 2.1.1.1 + blah. +
Section 2.1.1.1.1 + blah. +
+
Section 2.1.1.1.2 + blah. +
+
Section 2.1.1.1.3 + blah. +
+
+
Section 2.1.1.2 + blah. +
+
Section 2.1.1.3 + blah. +
+
+
Section 2.1.2 + blah. +
+
Section 2.1.3 + blah. +
+
+
Section 2.2 + blah. +
+
Section 2.3 + blah. +
+
+
Section 3 + blah. +
+
- This is a sect1 bridgehead - - This is a test paragraph. - - - first sect2 title - Please read - - This is an implied sect3 bridgehead - - This is a test paragraph. - - - - - second sect2 title - - - -
+ diff --git a/testdocs/synop.xml b/testdocs/synop.xml new file mode 100644 index 000000000..27c03519d --- /dev/null +++ b/testdocs/synop.xml @@ -0,0 +1,37 @@ + + +
+Synopses + + + +public +Catalog + + +public +static +final +int +BASE +CatalogEntry.addEntryType("BASE", 1) + + +public +Catalog + + + +protected + +copyReaders + +Catalog +newCatalog + + + + +
\ No newline at end of file diff --git a/testdocs/variablelist.xml b/testdocs/variablelist.xml index e88bcd703..7269eae68 100644 --- a/testdocs/variablelist.xml +++ b/testdocs/variablelist.xml @@ -11,6 +11,7 @@ + short @@ -34,9 +35,13 @@ + + + short @@ -66,7 +71,7 @@ YE OLDE ITEMIZEDLIST Item 1 Item 1 - + Axxxxx