Article wrapper
An address:
Santa Clause +Article wrapper \ No newline at end of file diff --git a/src/test/resources/expected/address.002.html b/src/test/resources/expected/address.002.html index 8f70e49bbb..cd47802d0e 100644 --- a/src/test/resources/expected/address.002.html +++ b/src/test/resources/expected/address.002.html @@ -1,4 +1,4 @@ - Article wrapper
An address:
Santa Clause 1 Main Street North Pole, AK 12345 -USOther address fields:
Information: +US
Other address fields:
Information: +1-914-555-1212 +1-213-555-1212no-one@example.com
-http://www.example.com/
With a PO Box:
Some Company +http://www.example.com/
With a PO Box:
Some Company P.O. Box 123 Anytown, XX 12345Test: address.002 Test: address.002
An address (in table style):
| +Test: address.002 Test: address.002
An address (in table style):
| | | | @@ -8,7 +8,7 @@ North Pole, AK 12345 US -Other address fields:
| +
Other address fields:
| | | | @@ -18,7 +18,7 @@ +1-213-555-1212no-one@example.com
http://www.example.com/
-With a PO Box:
| +
With a PO Box:
| | | | diff --git a/src/test/resources/expected/book.003.html b/src/test/resources/expected/book.003.html index 23d67a5759..15e5491b9e 100644 --- a/src/test/resources/expected/book.003.html +++ b/src/test/resources/expected/book.003.html @@ -34,8 +34,8 @@ Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. Blah blah blah blah blah blah blah blah. Blah blah blah blah. Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. -|
A figure. Just to test the numeration.
- Figure 1.1. A Test Figure1. First Section
|A figure. Just to test the numeration.
+|
A figure. Just to test the numeration.
+ Figure 1.1. A Test Figure1. First Section
|
A figure. Just to test the numeration.
Figure 1.2. Another Test FigureBlah blah blah blah. Blah blah blah blah. Blah blah blah blah. Blah blah blah blah blah blah blah blah. Blah blah blah blah. Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. @@ -53,7 +53,7 @@ Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. Blah blah blah blah blah blah blah blah. Blah blah blah blah. Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. -
|An example.
+|
An example.
Example 1.1. Test Example1.1. First Subsection
Blah blah blah blah. Blah blah blah blah. Blah blah blah blah. Blah blah blah blah blah blah blah blah. Blah blah blah blah. Blah. Blah blah blah blah. Blah blah. Blah blah blah blah. diff --git a/src/test/resources/expected/book.021.html b/src/test/resources/expected/book.021.html index 35e7f54080..f8e0f79a12 100644 --- a/src/test/resources/expected/book.021.html +++ b/src/test/resources/expected/book.021.html @@ -5,6 +5,6 @@ But you can fix it changing the
self::db:article
template in the “title-numbered” part of the localization to: -|<template match="self::db:article">%l%.%c</template>
+|
<template match="self::db:article">%l%.%c</template>
First Article
This article is numbered, so are its sections.
1. First section
1.1. Second section
…
Second Article
This article is not numbered, neither are its sections.
First section
Second section
Third Article
This article is numbered, its sections are not.
First section
Second section
…
\ No newline at end of file diff --git a/src/test/resources/expected/calloutlist.001.html b/src/test/resources/expected/calloutlist.001.html index f1e07e2504..42a98dd2f5 100644 --- a/src/test/resources/expected/calloutlist.001.html +++ b/src/test/resources/expected/calloutlist.001.html @@ -1,4 +1,4 @@ - Fourth Article
This article is not numbered, but its sections are.
1. First section
1.1. Second section
Article wrapper Article wrapper
Callouts using
co
:|(let ①loopvar ②((count 1))
+Article wrapper Article wrapper
Callouts using
co
:|(let ①loopvar ②((count 1))
|③(if (> count 10)
|④#t
|(⑤loopvar ⑥(+ count 1))))
diff --git a/src/test/resources/expected/calloutlist.002.html b/src/test/resources/expected/calloutlist.002.html index 5f59d28994..80c79a3dbd 100644 --- a/src/test/resources/expected/calloutlist.002.html +++ b/src/test/resources/expected/calloutlist.002.html @@ -1,4 +1,4 @@ -Article wrapper Article wrapper
Callouts using
co
:|(let ①loopvar ②((count 1))
+Article wrapper Article wrapper
Callouts using
co
:|(let ①loopvar ②((count 1))
|③(if (> count 10)
|④#t
|(⑤loopvar ⑥(+ count 1))))
diff --git a/src/test/resources/expected/calloutlist.003.html b/src/test/resources/expected/calloutlist.003.html index 090702d469..aaed926bb0 100644 --- a/src/test/resources/expected/calloutlist.003.html +++ b/src/test/resources/expected/calloutlist.003.html @@ -1,4 +1,4 @@ -Unit Test: calloutlist.003 Unit Test: calloutlist.003
Table of Contents1. Callouts
1.1. Embedded
co
s1 |<refentry>
+Unit Test: calloutlist.003 Unit Test: calloutlist.003
Table of Contents1. Callouts
1.1. Embedded
co
s1 |<refentry>
|<info>
|<date>2003-10-20</date> ①
|</info>
@@ -23,7 +23,7 @@ Anotherscreen
includingcoref
too. The firstcoref
is not valid, the second one is valid. It checks also that several items in co/@linkends are correctly handled. -|Volume in drive C is SYSTEM Serial number is 2350:717C
+|Volume in drive C is SYSTEM Serial number is 2350:717C
|Directory of C:\
||
10/17/97 9:04 <DIR> bin
@@ -47,7 +47,7 @@ Some sort of Windows 3.1 hack for some 386 processors, as I recall.1.2. Programlistingco
This case checks that spaces are added to reach the expected -column.
1 |This is a line
+column.This programlistingco checks that you can put several markups at different column positions into the same line, and that several markups with no column specification are both put at the end of the line. The special case of a markup at -the end of the last line is checked too.
1 |This is a line
+the end of the last line is checked too.1 |This is a line
|This is a①no②ther line ④③
|This is a third lien
|diff --git a/src/test/resources/expected/chapter.003.html b/src/test/resources/expected/chapter.003.html index 7cca3262ed..55d11943c1 100644 --- a/src/test/resources/expected/chapter.003.html +++ b/src/test/resources/expected/chapter.003.html @@ -20,7 +20,7 @@ is simply a matter of processing your input document
myfile.xmlwith. For example: -xslt/docbook.xsl
|$
+saxon myfile.xml -xsl:xslt/docbook.xsl -o:myfile.html
|
$
saxon myfile.xml -xsl:xslt/docbook.xsl -o:myfile.html
The exact path to
docbook.xsl
will vary, of course, but it’s in thexslt
directory of the distribution.ⓘ NoteThe resulting HTML document contains references to CSS stylesheets @@ -47,14 +47,14 @@
/home/ndw/xsltng
, you can run the JAR like this:
java -jar /home/ndw/xsltng/libs/docbook-xslTNG-XXX.jar
Let’s try it out. Open a shell window and change to the samples directory,
/home/ndw/xsltng/samples
assuming you unzipped -it as described above. Now run the java command:|$
+it as described above. Now run the java command:java -jar ../libs/docbook-xslTNG-XXX.jar article.xml
|$
|java -jar ../libs/docbook-xslTNG-XXX.jar article.xml
|
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
|
…more HTML here...
<nav class="bottom"></nav></body></html>
That big splash of HTML was your first DocBook document formatted by the stylesheets! Slightly more usefully, you can save that HTML in a file: -
|$
+java -jar ../libs/docbook-xslTNG-XXX.jar article.xml \
|$
|java -jar ../libs/docbook-xslTNG-XXX.jar article.xml \
-o:article.html
If you now open
article.html
in your favorite web browser, you’ll see the transformed sample document @@ -75,7 +75,7 @@ the DocBook extension functions.☝ ImportantThe script requires the click and pygments packages, which you must install with pip before -running the script. For example:
|python3 -m pip install pygments=2.6.1 click
+running the script. For example:|
python3 -m pip install pygments=2.6.1 click
This script behaves much like the JAR file described in …. In particular, it accepts the same command line options as Saxon, with the same caveats.
The significant feature of the Python script is that it will @@ -84,7 +84,7 @@ have to have installed Maven. How you do that varies by platform, but your package manager probably has it.
The following command will assure that you’ve downloaded all of -the necessary dependencies. You only have to do this once.
|$
+the necessary dependencies. You only have to do this once.mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:get \
|$
|mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:get \
-Dartifact=org.docbook:docbook-xslTNG:XXX
That might take a while.
The script will work through the dependencies that you have installed, and the things that they depend on, and construct a Java @@ -121,12 +121,12 @@ isolate the environment necessary to run the DocBook xslTNG Stylesheets from your local environment.
Using Docker is a three step process. Step 0, you have to have installed Docker!
Build the docker image. In the
docker
directory, run the docker build -command:|$
+command:docker build -t docbook-xsltng .
|
$
docker build -t docbook-xsltng .
The “
-t
” option provides a tag for the image; you can make this anything you want. There’s aVERSION
-build argument if you want to build a particular release. For example,|$
+build argument if you want to build a particular release. For example,docker build --build-arg VERSION=0.9.14 -t docbook-xsltng .
|
$
docker build --build-arg VERSION=0.9.14 -t docbook-xsltng .
will build a Docker image for the 0.9.14 release of the -stylesheets irrespective of the version in the Dockerfile.
Run the image, for example:
|
$
+stylesheets irrespective of the version in the Dockerfile.docker run docbook-xsltng samples/article.xml
Run the image, for example:
|
$
docker run docbook-xsltng samples/article.xml
If you chose a different tag when you built the image, use that tag in place of
in thedocbook-xsltng
run
command. Everything after the container tag becomes options to the @@ -137,7 +137,7 @@ container. So thearticle.xml
document isn’t the one on your local filesystem.You can use the Docker facilities for mounting directories to change what documents the script can access. For example: -
|$
+docker run -v /tmp:/output -v /path/to/samples:/input \
|$
|docker run -v /tmp:/output -v /path/to/samples:/input \
|
docbook-xsltng /input/article.xml chunk=index.html \
chunk-output-base-uri=/output/
Assuming that the “samples” directory in the distribution is @@ -168,7 +168,7 @@ Saxon 10.1 or later. Make sure that the
docbook-xsltng-version.jar
file is on your class path and use the Saxon-init
option to -load them:
-init:org.docbook.xsltng.extensions.Register
5.1. Extension function debugging
When an extension function fails, or produces result other than +load them:
-init:org.docbook.xsltng.extensions.Register
5.1. Extension function debugging
When an extension function fails, or produces result other than what you expect, it can be difficult sometimes to work out what happened. You can enable debugging messages by setting the the system property
org.docbook.xsltng.verbose
.Setting the property to the value “
true
” enables @@ -227,7 +227,7 @@ on the page, then you’ll get a “speaker notes” view of the page.This can be combined with another extension, the use of browser local storage, to create a simple presentation system. Add this
meta
tag to the -info
element of your document:|<meta xmlns="http://www.w3.org/1999/xhtml"
+info
element of your document:|<meta xmlns="http://www.w3.org/1999/xhtml"
|name="localStorage.key" content="keyname"/>
That will cause the pages to keep track of their location using the “
keyname
” property in local storage. This is important @@ -260,7 +260,7 @@ and the stylesheets don’t either. You’re free to use “cat” and “dog” as effectivity values in thewordsize
attribute, if you wish. The further you deviate from the nominal meaning, the more -important it is to document your system!Consider ….
<para>This is an utterly contrived example of +important it is to document your system!
Consider ….
<para>This is an utterly contrived example of some common text. Options are introduced with the <phrase os="windows">/</phrase> <phrase os="mac;linux">-</phrase> character.</para>
Example 1.1. A contrived effectivity exampleIf this document is formatted with the
profile-os
diff --git a/src/test/resources/expected/classsynopsis.001.html b/src/test/resources/expected/classsynopsis.001.html index f4d2c34880..395eba6469 100644 --- a/src/test/resources/expected/classsynopsis.001.html +++ b/src/test/resources/expected/classsynopsis.001.html @@ -1,5 +1,5 @@ -Unit test: classsynopsis.001 Unit test: classsynopsis.001
// This is just a made up example. -// Mostly.
public class Catalog { +Unit test: classsynopsis.001 Unit test: classsynopsis.001
// This is just a made up example. +// Mostly.
public class Catalog { public static final int BASE = CatalogEntry.addEntryType("BASE", 1); public Catalog(); protected copyReaders(Catalog newCatalog); diff --git a/src/test/resources/expected/co.001.html b/src/test/resources/expected/co.001.html index ca91cf3527..6c264205fd 100644 --- a/src/test/resources/expected/co.001.html +++ b/src/test/resources/expected/co.001.html @@ -1,4 +1,4 @@ -Unit Test: co.001 Unit Test: co.001
Callouts inside
userinput
elements.|+
$
cp a b①
Unit Test: co.001 Unit Test: co.001
Callouts inside
userinput
elements.||
$
cp a b①
|
|
$
mv a b②
diff --git a/src/test/resources/expected/colors.001.html b/src/test/resources/expected/colors.001.html index f8b95eb792..aa0257d679 100644 --- a/src/test/resources/expected/colors.001.html +++ b/src/test/resources/expected/colors.001.html @@ -2,7 +2,7 @@ that gets presented in different colors by default today. You are, of course, free to add your own CSS which uses color in other places. The primary purpose of this document is to test various themes, so it’s most useful -if the theme picker is enabled.
This is a paragraph of ordinary text.⌖1
Table 1. A Table
n n2 n3 1 1 1 2 4 8 3 9 27 Another paragraph.⌖2
1 |def _parse_args(self, args):
+if the theme picker is enabled.This is a paragraph of ordinary text.⌖1
Table 1. A Table
n n2 n3 1 1 1 2 4 8 3 9 27 Another paragraph.⌖2
1 |def _parse_args(self, args):
|done = False
|for arg in args:
|if done:
@@ -33,11 +33,11 @@This is a paragraph with the debug class.
Here is a remark. The keycap rendering has a drop shadow. -There’s also color in
code
.|Line one
+There’s also color incode
.|Line one
|Line two ①
|Line three
|Line four
-There’s also the “monochrome” listing:
|
(defun ndw/insert-date-time (with-tz)
+There’s also the “monochrome” listing:
|(defun ndw/insert-date-time (with-tz)
|"Insert current date-time string in ISO 8601 format.
|If WITH-TZ is nil, the time is printed without the timezone;
|if WITH-TZ is t, the time is printed with the timezone;
diff --git a/src/test/resources/expected/enumsynopsis.001.html b/src/test/resources/expected/enumsynopsis.001.html index 97af24de70..d9a396519a 100644 --- a/src/test/resources/expected/enumsynopsis.001.html +++ b/src/test/resources/expected/enumsynopsis.001.html @@ -1,4 +1,4 @@ -Unit test: enumsynopsis.001 Unit test: enumsynopsis.001
public enum Fruit { +Unit test: enumsynopsis.001 Unit test: enumsynopsis.001
public enum Fruit { APPLE, // Of course. PEAR, TOMATO // Famously. diff --git a/src/test/resources/expected/example.001.html b/src/test/resources/expected/example.001.html index 008360fdb5..e87cc104cb 100644 --- a/src/test/resources/expected/example.001.html +++ b/src/test/resources/expected/example.001.html @@ -1,2 +1,2 @@ -Article wrapper Article wrapper
|This is a programlisting in an example.
+Article wrapper \ No newline at end of file diff --git a/src/test/resources/expected/fit.001.html b/src/test/resources/expected/fit.001.html index 1c8745654a..580a3a4c02 100644 --- a/src/test/resources/expected/fit.001.html +++ b/src/test/resources/expected/fit.001.html @@ -38,7 +38,7 @@ will be the same. Article wrapper
|
This is a programlisting in an example.
Example 1. An ExampleA system where you have to import the code or add the markup inline introduces the risk that the listing being documented will not be updated when the underlying resource is updated.
The program below computes the -“nth” Fibonacci number.
1 |#!/bin/env python
+“nth” Fibonacci number.1 |#!/bin/env python
||
"""Computes the n'th Fibonacci number."""
|@@ -55,7 +55,7 @@ XInclude (and RFC 5147) to break the listing into manageable fragments for documentation. The listing above, and the one below, -are lines from the same file.
11 |@click.command()
+are lines from the same file.11 |@click.command()
|@click.argument("number", nargs=1,
|③ type=click.IntRange(1, None))
|def fibonacci(number):
@@ -112,7 +112,7 @@ The more interesting feature is that unlike HTML anchors, they can also have multiple endpoints. Consider the following link: -⌖51 |<phrase xmlns:xlink="http://www.w3.org/1999/xlink"
+⌖51 |<phrase xmlns:xlink="http://www.w3.org/1999/xlink"
|xlink:type="extended">
|<link xlink:title="DocBook.org"
|xlink:label="target"
@@ -188,7 +188,7 @@ other vocabularies, there’s no reason a DocBook customization couldn’t use simplified markup to identify links: -|<extended-link>
+|<extended-link>
|<target title="DocBook.org" href="http://docbook.org/"/>
|<target title="DocBook on Wikipedia"
|href="http://en.wikipedia.org/wiki/DocBook"/>
diff --git a/src/test/resources/expected/fit.002.html b/src/test/resources/expected/fit.002.html index 12550b6e27..0e0ded33ca 100644 --- a/src/test/resources/expected/fit.002.html +++ b/src/test/resources/expected/fit.002.html @@ -38,7 +38,7 @@ will be the same.A system where you have to import the code or add the markup inline introduces the risk that the listing being documented will not be updated when the underlying resource is updated.
The program below computes the -“nth” Fibonacci number.
1 |#!/bin/env python
+“nth” Fibonacci number.1 |#!/bin/env python
||
"""Computes the n'th Fibonacci number."""
|@@ -55,7 +55,7 @@ XInclude (and RFC 5147) to break the listing into manageable fragments for documentation. The listing above, and the one below, -are lines from the same file.
11 |@click.command()
+are lines from the same file.11 |@click.command()
|@click.argument("number", nargs=1,
|③ type=click.IntRange(1, None))
|def fibonacci(number):
@@ -112,7 +112,7 @@ The more interesting feature is that unlike HTML anchors, they can also have multiple endpoints. Consider the following link: -⌖51 |<phrase xmlns:xlink="http://www.w3.org/1999/xlink"
+⌖51 |<phrase xmlns:xlink="http://www.w3.org/1999/xlink"
|xlink:type="extended">
|<link xlink:title="DocBook.org"
|xlink:label="target"
@@ -188,7 +188,7 @@ other vocabularies, there’s no reason a DocBook customization couldn’t use simplified markup to identify links: -|<extended-link>
+|<extended-link>
|<target title="DocBook.org" href="http://docbook.org/"/>
|<target title="DocBook on Wikipedia"
|href="http://en.wikipedia.org/wiki/DocBook"/>
diff --git a/src/test/resources/expected/footnote.002.html b/src/test/resources/expected/footnote.002.html index 803fe4624f..c504487129 100644 --- a/src/test/resources/expected/footnote.002.html +++ b/src/test/resources/expected/footnote.002.html @@ -1,7 +1,7 @@Article wrapper Article wrapper
This paragraph contains a footnote1.
This is a longer paragraph. It will eventually contain a footnote, but first it has enough text to make the footnote appear in the middle of the paragraph. diff --git a/src/test/resources/expected/footnote.003.html b/src/test/resources/expected/footnote.003.html index f5da94d30d..edd0b8081a 100644 --- a/src/test/resources/expected/footnote.003.html +++ b/src/test/resources/expected/footnote.003.html @@ -1,13 +1,13 @@
Article wrapper Article wrapper
This paragraph contains a footnote1.
This paragraph contains a footnote2.
Table 2. A table
A Cell A Cella A Cell A Cellb A Cell A Cell A Cell A Cell A Cellc - First footnote.
Second footnote.
This paragraph contains a footnote3.
An HTML Table A Cell A Cella A Cell A Cellb A Cell A Cell A Cell A Cell A Cellc - First footnote.
Second footnote.
This paragraph contains a footnote4.
\ No newline at end of file diff --git a/src/test/resources/expected/funcsynopsis.001.html b/src/test/resources/expected/funcsynopsis.001.html index 740c08a8de..007442c9f5 100644 --- a/src/test/resources/expected/funcsynopsis.001.html +++ b/src/test/resources/expected/funcsynopsis.001.html @@ -1,8 +1,8 @@ -Article wrapper Article wrapper
Table of Contents1. "Default" rendering
A funcsynopsis.
#include <varargs.h>
float rand();int max(...);int idiv(n, m);int n;int m;Another.
void qsort( dataptr, left, right, comp);
void * dataptr[] int left int right int (*comp) + Article wrapper \ No newline at end of file diff --git a/src/test/resources/expected/glossary.007.html b/src/test/resources/expected/glossary.007.html index 54a3fca1a0..b942203dd1 100644 --- a/src/test/resources/expected/glossary.007.html +++ b/src/test/resources/expected/glossary.007.html @@ -1,6 +1,6 @@ Article wrapper
Table of Contents1. "Default" rendering
A funcsynopsis.
#include <varargs.h>
float rand();int max(...);int idiv(n, m);int n;int m;Another.
void qsort( dataptr, left, right, comp);
void * dataptr[] int left int right int (*comp) (void *, void *) Another.
int foo_frob_something( foo_frob_parm1, foo_frob_parm2, foo_frob_parm3, parm4, foo_frob_parm5);
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_frob_parm1, foo_frob_parm2, foo_frob_parm3, parm4, foo_frob_parm5);
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 2. ANSI Rendering
Another.
#include <varargs.h>
float rand(void);int max(...);int idiv(int n, int m);Another.
void qsort( void *dataptr[], int left, int right, int (*comp) + (int a, int b, int c) foo_sometype1 foo_frob_parm5 2. ANSI Rendering
Another.
#include <varargs.h>
float rand(void);int max(...);int idiv(int n, int m);Another.
void qsort( void *dataptr[], int left, int right, int (*comp) (void *, void *)); Another.
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); 3. K&R Rendering
Another.
#include <varargs.h>
float rand();int max(...);int idiv(n, m);int n;int m;Another.
void qsort( dataptr, left, right, comp);
void * dataptr[] int left int right int (*comp) + (int a, int b, int c), foo_sometype1 foo_frob_parm5); 3. K&R Rendering
Another.
#include <varargs.h>
float rand();int max(...);int idiv(n, m);int n;int m;Another.
void qsort( dataptr, left, right, comp);
void * dataptr[] int left int right int (*comp) (void *, void *) Another.
int foo_frob_something( foo_frob_parm1, foo_frob_parm2, foo_frob_parm3, parm4, foo_frob_parm5);
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 Mixed Glossary with multiple entries, some from an external glossary Mixed Glossary with multiple entries, some from an external glossary
ⓘ NoteThe test harness is configured to run this test without setting the
glossary-collection
parameter.This test is essentially the same as
glossary.006
. The difference is, - that the external glossary is referenced by the following processing instruction:|<?db glossary-collection='../glosscollection.xml' ?>
+ that the external glossary is referenced by the following processing instruction:|
<?db glossary-collection='../glosscollection.xml' ?>
It checks the
glossary-collection
machinery when the "internal" glossary is not empty, and some glossterms have definitions in the internal and external glossaries. The internal entry has priority and should therefore cover / overwrite the diff --git a/src/test/resources/expected/glossary.008.html b/src/test/resources/expected/glossary.008.html index 77494cbe09..022f0906ff 100644 --- a/src/test/resources/expected/glossary.008.html +++ b/src/test/resources/expected/glossary.008.html @@ -1,7 +1,7 @@Mixed Glossary with multiple entries from two external glossaries Mixed Glossary with multiple entries from two external glossaries
ⓘ NoteThe test harness is configured to run this test without setting the
glossary-collection
parameter.This test is essentially the same as
glossary.007
. The difference is, that we have two external glossaries, both referenced by the following processing - instruction:|<?db glossary-collection='../glosscollection.xml
+ instruction:|<?db glossary-collection='../glosscollection.xml
|../glosscollection2.xml' ?>
It checks the
glossary-collection
machinery when the "internal" glossary is not empty, and some glossterms have definitions in the internal and external diff --git a/src/test/resources/expected/glossary.009.html b/src/test/resources/expected/glossary.009.html index da80c78a2d..1bf7c7d109 100644 --- a/src/test/resources/expected/glossary.009.html +++ b/src/test/resources/expected/glossary.009.html @@ -1,7 +1,7 @@Referencing a non-existing external glossary Referencing a non-existing external glossary
ⓘ NoteThe test harness is configured to run this test without setting the
glossary-collection
parameter.This test is essentially the same as
glossary.008
The difference is, that we use the following processing instruction, which references one none-existing file -glosscollectionx.xml
:|<?db glossary-collection='../glosscollection.xml
+glosscollectionx.xml
:|<?db glossary-collection='../glosscollection.xml
|../glosscollectionx.xml
|../glosscollection2.xml' ?>
We expect a warning message about the non-existing file, and a glossary with three diff --git a/src/test/resources/expected/indexterm.005.html b/src/test/resources/expected/indexterm.005.html index 7f41239fed..b9096f8b5a 100644 --- a/src/test/resources/expected/indexterm.005.html +++ b/src/test/resources/expected/indexterm.005.html @@ -1,6 +1,6 @@
Unit Test: indexterm.005 Unit Test: indexterm.005
Table of Contents1. Bizarre Indexterm Test
This is first test paragraph. -
|#include <stdio.h>
+|
#include <stdio.h>
\ No newline at end of file diff --git a/src/test/resources/expected/informalexample.001.html b/src/test/resources/expected/informalexample.001.html index 71c96b08c0..e3491ea251 100644 --- a/src/test/resources/expected/informalexample.001.html +++ b/src/test/resources/expected/informalexample.001.html @@ -1,2 +1,2 @@ -Index
Symbols
- <stdio.h>, 1
Article wrapper Article wrapper
|This is a programlisting in an informalexample.
+Article wrapper \ No newline at end of file diff --git a/src/test/resources/expected/iso690.001.html b/src/test/resources/expected/iso690.001.html index cd8c9a0005..5883c7ff0e 100644 --- a/src/test/resources/expected/iso690.001.html +++ b/src/test/resources/expected/iso690.001.html @@ -4,7 +4,7 @@ for online documents and optional for others. Article wrapper
|
This is a programlisting in an informalexample.
1. Monographs
Non-serial bibliographic item, i.e. an item either complete in one part or complete (or intended to be completed) in a finite number of separate parts.
Element Example Primary responsibility LOMINADZE, DG. Title Cyclotron waves in plasma - * Subordinate responsibility Translated by AN. Dellis; edited by SM. Hamberger Edition 1st ed. * Place of publication Oxford * Publisher Pergamon Press Year of publication 1981 * Extent 206 p. * Series International series in natural philosophy * Notes Translation of: Ciklotronnye volny v plasme Standard number ISBN 0-08-021680-3 Markup:
1 |
<biblioentry role="monograph">
+* Subordinate responsibility Translated by AN. Dellis; edited by SM. Hamberger Edition 1st ed. * Place of publication Oxford * Publisher Pergamon Press Year of publication 1981 * Extent 206 p. * Series International series in natural philosophy * Notes Translation of: Ciklotronnye volny v plasme Standard number ISBN 0-08-021680-3 Markup:
1 |<biblioentry role="monograph">
|<author>
|<personname>
|<surname>Lominadze</surname>
diff --git a/src/test/resources/expected/iso690.002.html b/src/test/resources/expected/iso690.002.html index a540069ae9..79307c3b65 100644 --- a/src/test/resources/expected/iso690.002.html +++ b/src/test/resources/expected/iso690.002.html @@ -4,7 +4,7 @@ for online documents and optional for others.1. Serials
Publication, in any medium, issued in successive parts, usually having numeric or chronological designations, and intended to be continued indefinitely.
Element Example Title Communications equipment manufacturers - Responsibility Manufacturing and Primary Industries Division, Statistics Canada Edition Preliminary edition Issue designation (date and/or n°) 1970- * Place of publication Ottawa * Publisher Statistics Canada Year of publication 1971- * Series Annual census of manufacturers * Notes Text in English and French Standard number ISSN 0700-0758 Markup:
1 |<biblioentry role="serial">
+Responsibility Manufacturing and Primary Industries Division, Statistics Canada Edition Preliminary edition Issue designation (date and/or n°) 1970- * Place of publication Ottawa * Publisher Statistics Canada Year of publication 1971- * Series Annual census of manufacturers * Notes Text in English and French Standard number ISSN 0700-0758 Markup:
1 |<biblioentry role="serial">
|<title>Communications equipment manufacturers</title>
|<bibliomisc role="secondary">Manufacturing and Primary Industries Division, Statistics Canada</bibliomisc>
|<edition>Preliminary edition</edition>
diff --git a/src/test/resources/expected/iso690.003.html b/src/test/resources/expected/iso690.003.html index d44100f5a4..4898925cd3 100644 --- a/src/test/resources/expected/iso690.003.html +++ b/src/test/resources/expected/iso690.003.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.003.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Parts of monographs
Element Example Primary responsibility PARKER, TJ. and HASWELL, WD. Title of host document A text-book of zoology - Edition 5th ed. Numeration of the part vol. 1 * Subordinate responsibility revised by WD. Lang * Place of publication London * Publisher Macmillan Year of publication 1930 Location within host Section 12, Phylum Mollusca, p. 663-782 Markup:
1 |<biblioentry role="part">
+Edition 5th ed. Numeration of the part vol. 1 * Subordinate responsibility revised by WD. Lang * Place of publication London * Publisher Macmillan Year of publication 1930 Location within host Section 12, Phylum Mollusca, p. 663-782 Markup:
1 |<biblioentry role="part">
|<authorgroup>
|<author>
|<personname>
diff --git a/src/test/resources/expected/iso690.004.html b/src/test/resources/expected/iso690.004.html index b3434537ff..fa9fd7ea77 100644 --- a/src/test/resources/expected/iso690.004.html +++ b/src/test/resources/expected/iso690.004.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.004.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Contributions to monographs
Contribution is independent unit forming part of a document.
Element Example for contribution: Primary responsibility WRIGLEY, EA. Title Parish registers and the historian for host: Primary responsibility STEEL, DJ. Title National index of parish registers - Edition — (not in this example) * Place of publication London * Publisher Society of Genealogists Year of publication 1968 Location within host vol. 1, p. 155-167 Markup:
1 |<biblioentry role="contribution">
+Edition — (not in this example) * Place of publication London * Publisher Society of Genealogists Year of publication 1968 Location within host vol. 1, p. 155-167 Markup:
1 |<biblioentry role="contribution">
|<biblioset relation="part">
|<author>
|<personname>
diff --git a/src/test/resources/expected/iso690.005.html b/src/test/resources/expected/iso690.005.html index 4dd7445788..d66f7c58ab 100644 --- a/src/test/resources/expected/iso690.005.html +++ b/src/test/resources/expected/iso690.005.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.005.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Articles, etc., in serials
Element Example Primary responsibility WEAVER, William Title The collectors: command performances * Subordinate responsibility Photography by Robert Emmett Bright Title of host document Architectural Digest - Edition — (not in this example) Location within host: Year, Issue designation, Pagination of the part December 1985, vol. 42, no. 12, p. 126-133 Markup:
1 |<biblioentry role="article">
+Edition — (not in this example) Location within host: Year, Issue designation, Pagination of the part December 1985, vol. 42, no. 12, p. 126-133 Markup:
1 |<biblioentry role="article">
|<biblioset relation="article">
|<author>
|<personname>
diff --git a/src/test/resources/expected/iso690.006.html b/src/test/resources/expected/iso690.006.html index caf1e0a85f..b8660939d6 100644 --- a/src/test/resources/expected/iso690.006.html +++ b/src/test/resources/expected/iso690.006.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.006.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Patent documents
Element Example * Primary responsibility (applicant) Carl Zeiss Jena, VEB * Title of the invention Anordnung zur lichtelektrischen Erfassung der Mitte eines Lichtfeldes - * Subordinate responsibility Erfinder: W. FEIST, C. WAHNERT, E. FEISTAUER * Notes Int. Cl.3: G02 B 27/14 Identification: Country or issuing office Schweiz Kind of patent document Patentschrift Number 608 626 Date of publication of cited document 1979-01-15 Markup:
1 |<biblioentry role="patent">
+* Subordinate responsibility Erfinder: W. FEIST, C. WAHNERT, E. FEISTAUER * Notes Int. Cl.3: G02 B 27/14 Identification: Country or issuing office Schweiz Kind of patent document Patentschrift Number 608 626 Date of publication of cited document 1979-01-15 Markup:
1 |<biblioentry role="patent">
|<author>
|<orgname>Carl Zeiss Jena, VEB</orgname>
|</author>
diff --git a/src/test/resources/expected/iso690.007.html b/src/test/resources/expected/iso690.007.html index 401f90bf1f..837eed0486 100644 --- a/src/test/resources/expected/iso690.007.html +++ b/src/test/resources/expected/iso690.007.html @@ -3,7 +3,7 @@Unit Test: iso690.007.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Monographs, databases and computer programs
Element Example Primary responsibility CARROLL, Lewis Title Alice's Adventures in Wonderland Type of medium [online] * Subordinate responsibility — (not in this example) Edition Textinfo ed. 2.1 Place of publication [Dortmund, Germany] Publisher Windspiel Date of publication November 1994 Date of update/revision — (not in this example) + Date of citation [cited 10 February 1995] * Series — (not in this example) * Notes — (not in this example) + -Availability and access Available from World Wide Web: <http://germany.eu.net/books/carroll/alice/html> Also available in PostScript and ASCII versions from Internet: <ftp://ftp.Germany.EU.net/pub/books/carroll/> Standard number — (not in this example) Markup:
1 |<biblioentry role="monograph">
+Availability and accessAvailable from World Wide Web: <http://germany.eu.net/books/carroll/alice/html> Also available in PostScript and ASCII versions from Internet: <ftp://ftp.Germany.EU.net/pub/books/carroll/> Standard number — (not in this example) Markup:
1 |<biblioentry role="monograph">
|<author>
|<personname>
|<surname>Carroll</surname>
diff --git a/src/test/resources/expected/iso690.008.html b/src/test/resources/expected/iso690.008.html index 4ee1a38ec5..86e8b3cb11 100644 --- a/src/test/resources/expected/iso690.008.html +++ b/src/test/resources/expected/iso690.008.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.008.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Parts of monographs, databases and computer programs
Element Example Primary responsibility of host document CARROLL, Lewis Title of host document Alice's Adventures in Wonderland - Type of medium [online] * Subordinate responsibility of host document — (not in this example) Edition Textinfo ed. 2.2 Place of publication [Dortmund, Germany] Publisher Windspiel Date of publication November 1994 Date of update/revision — (not in this example) + Date of citation [cited 30 March 1995] Chapter or equivalent designation (of part) Chapter VII Title (of part) Mad Tea-Party * Numeration within host document — (not in this example) Location within host document — (not in this example) * Notes — (not in this example) + Availability and access Available from World Wide Web: <http://germany.eu.net/books/carroll/alice_10.html#SEC13> Standard number — (not in this example) Markup:
1 |<biblioentry role="part">
+Type of medium [online] * Subordinate responsibility of host document — (not in this example) Edition Textinfo ed. 2.2 Place of publication [Dortmund, Germany] Publisher Windspiel Date of publication November 1994 Date of update/revision — (not in this example) + Date of citation [cited 30 March 1995] Chapter or equivalent designation (of part) Chapter VII Title (of part) Mad Tea-Party * Numeration within host document — (not in this example) Location within host document — (not in this example) * Notes — (not in this example) + Availability and access Available from World Wide Web: <http://germany.eu.net/books/carroll/alice_10.html#SEC13> Standard number — (not in this example) Markup:
1 |<biblioentry role="part">
|<author>
|<personname>
|<surname>Carroll</surname>
diff --git a/src/test/resources/expected/iso690.009.html b/src/test/resources/expected/iso690.009.html index c2d8787b13..12316bd4e1 100644 --- a/src/test/resources/expected/iso690.009.html +++ b/src/test/resources/expected/iso690.009.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.008.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Contributions to monographs, databases and computer programs
Element Example Primary responsibility (of contribution) MCCONNELL, W. H. Title (of contribution) Constitutional History Primary responsibility of host document — (not in this example) Title of host document The Canadian Encyclopedia - Type of medium [CD-ROM] * Subordinate responsibility of host document — (not in this example) Edition Macintosh version 1.1 Place of publication Toronto Publisher McClelland & Stewart Date of publication c1993 Date of update/revision — (not in this example) + Date of citation — (not in this example) * Numeration within host document — (not in this example) Location within host document — (not in this example) * Notes — (not in this example) + Availability and access — (not in this example) Standard number ISBN 0-7710-1932-7 Markup:
1 |<biblioentry role="contribution">
+Type of medium [CD-ROM] * Subordinate responsibility of host document — (not in this example) Edition Macintosh version 1.1 Place of publication Toronto Publisher McClelland & Stewart Date of publication c1993 Date of update/revision — (not in this example) + Date of citation — (not in this example) * Numeration within host document — (not in this example) Location within host document — (not in this example) * Notes — (not in this example) + Availability and access — (not in this example) Standard number ISBN 0-7710-1932-7 Markup:
1 |<biblioentry role="contribution">
|<biblioset relation="part">
|<author>
|<surname>McConnell</surname>
diff --git a/src/test/resources/expected/iso690.010.html b/src/test/resources/expected/iso690.010.html index f4bc588e2e..5c23e5ae60 100644 --- a/src/test/resources/expected/iso690.010.html +++ b/src/test/resources/expected/iso690.010.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.009.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Electronic serials
Element Example Title Journal of Technology Education - Type of medium [online] Edition — (not in this example) Place of publication Blacksburg (Va.) Publisher Virginia Polytechnic Institute and State University Date of publication 1989- + Date of citation [cited 15 March 1995] * Series — (not in this example) * Notes Semi-annual + Availability and access Available from Internet: <gopher://borg.lib.vt.edu:edu:70/1/jte> Standard number ISSN 1045-1064 Markup:
1 |<biblioentry role="serial">
+Type of medium [online] Edition — (not in this example) Place of publication Blacksburg (Va.) Publisher Virginia Polytechnic Institute and State University Date of publication 1989- + Date of citation [cited 15 March 1995] * Series — (not in this example) * Notes Semi-annual + Availability and access Available from Internet: <gopher://borg.lib.vt.edu:edu:70/1/jte> Standard number ISSN 1045-1064 Markup:
1 |<biblioentry role="serial">
|<title>Journal of Technology Education</title>
|<bibliomisc role="medium">online</bibliomisc>
|<publisher>
diff --git a/src/test/resources/expected/iso690.011.html b/src/test/resources/expected/iso690.011.html index 87cdb1f6f8..72a850fe6a 100644 --- a/src/test/resources/expected/iso690.011.html +++ b/src/test/resources/expected/iso690.011.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.010.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Articles and other contributions
Element Example Primary responsibility of contribution PRICE-WILKIN, John Title of contribution Using the World-Wide Web to Deliver Complex Electronic Documents: Implications for Libraries Title Serials The Public-Access Computer Systems Review - Type of medium [online] Edition — (not in this example) Number designation 1994, vol. 5, no. 3 Date of update/revision — (not in this example) + Date of citation [cited 1994-07-28] Location within host document pp. 5-21 * Notes — (not in this example) + Availability and access Available from Internet: <gopher://info.lib.uh.edu:70/00/articles/e-journals/uhlibrary/pacsreview/v5/n3/pricewil.5n3> Standard number ISSN 1048-6542 Markup:
1 |<biblioentry role="article">
+Type of medium [online] Edition — (not in this example) Number designation 1994, vol. 5, no. 3 Date of update/revision — (not in this example) + Date of citation [cited 1994-07-28] Location within host document pp. 5-21 * Notes — (not in this example) + Availability and access Available from Internet: <gopher://info.lib.uh.edu:70/00/articles/e-journals/uhlibrary/pacsreview/v5/n3/pricewil.5n3> Standard number ISSN 1048-6542 Markup:
1 |<biblioentry role="article">
|<biblioset relation="article">
|<author>
|<personname>
diff --git a/src/test/resources/expected/iso690.012.html b/src/test/resources/expected/iso690.012.html index 31a2c03cb3..42994aeacc 100644 --- a/src/test/resources/expected/iso690.012.html +++ b/src/test/resources/expected/iso690.012.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.011.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Electronic bulletin boards, discussion lists and electronic messages
Element Example Title PACS-L (Public Access Computer Systems Forum) - Type of medium [online] Place of publication Houston (Tex.) Publisher University of Houston Libraries Date of publication June 1989- Date of citation [cited 17 May 1995] * Notes — (not in this example) Availability and access Available from Internet: <listserv@unhupvm1.uh.edu> Markup:
1 |<biblioentry role="messagesystem">
+Type of medium [online] Place of publication Houston (Tex.) Publisher University of Houston Libraries Date of publication June 1989- Date of citation [cited 17 May 1995] * Notes — (not in this example) Availability and access Available from Internet: <listserv@unhupvm1.uh.edu> Markup:
1 |<biblioentry role="messagesystem">
|<title>PACS-L (Public Access Computer Systems Forum)</title>
|<bibliomisc role="medium">online</bibliomisc>
|<publisher>
diff --git a/src/test/resources/expected/iso690.013.html b/src/test/resources/expected/iso690.013.html index 82cfd1e997..0871b82e5f 100644 --- a/src/test/resources/expected/iso690.013.html +++ b/src/test/resources/expected/iso690.013.html @@ -2,7 +2,7 @@ table tr td:first-child + td { white-space: nowrap; }Unit Test: iso690.012.xml
Examples are adapted from ISO 690 and ISO 690-2 standards.
Elements marked with * are optional, + marks mandatory elements for online documents and optional for others.
1. Electronic messages
Element Example Primary responsibility of message PARKER, Elliot Title of message Re: Citing Electronic Journals Title of host message system PACS-L (Public Access Computer Systems Forum) - Type of medium [online] * Subordinate responsibility/applicant(s) — (not in this example) Place of publication Houston (Tex.) Publisher University of Houston Libraries Date of publication 24 November 1989; 13:29:35 CST Date of citation [cited 1 January 1995; 16:15 EST] * Numeration within host message system — (not in this example) Location within host message system — (not in this example) Availability and access Available from Internet: <telnet://brsuser@a.cni.org> * Notes — (not in this example) Markup:
1 |<biblioentry role="message">
+Type of medium [online] * Subordinate responsibility/applicant(s) — (not in this example) Place of publication Houston (Tex.) Publisher University of Houston Libraries Date of publication 24 November 1989; 13:29:35 CST Date of citation [cited 1 January 1995; 16:15 EST] * Numeration within host message system — (not in this example) Location within host message system — (not in this example) Availability and access Available from Internet: <telnet://brsuser@a.cni.org> * Notes — (not in this example) Markup:
1 |<biblioentry role="message">
|<biblioset relation="part">
|<author>
|<personname>
diff --git a/src/test/resources/expected/lineannotation.001.html b/src/test/resources/expected/lineannotation.001.html index 3eb8687f7b..78235072eb 100644 --- a/src/test/resources/expected/lineannotation.001.html +++ b/src/test/resources/expected/lineannotation.001.html @@ -1,4 +1,4 @@ -Article wrapper Article wrapper
This article tests
lineannotation
.|This is a
+Article wrapper Article wrapper
This article tests
lineannotation
.|This is a
|screen annotation 1
|with several
|lines that have no annotation 2
diff --git a/src/test/resources/expected/literallayout.001.html b/src/test/resources/expected/literallayout.001.html index 171e05f36e..ead1c19483 100644 --- a/src/test/resources/expected/literallayout.001.html +++ b/src/test/resources/expected/literallayout.001.html @@ -1,4 +1,4 @@ -Unit test: literallayout.001 Unit test: literallayout.001
LiteralLayout: This is a test +Unit test: literallayout.001 Unit test: literallayout.001
LiteralLayout: This is a test Only a test. Had this been a real emegency, We would have fled in terror diff --git a/src/test/resources/expected/literallayout.002.html b/src/test/resources/expected/literallayout.002.html index 6b300607aa..01f600278e 100644 --- a/src/test/resources/expected/literallayout.002.html +++ b/src/test/resources/expected/literallayout.002.html @@ -1,4 +1,4 @@ -Unit test: literallayout.002 Unit test: literallayout.002
+Unit test: literallayout.002 Unit test: literallayout.002
LiteralLayout: This is a test This is a test with embedded markup; but still diff --git a/src/test/resources/expected/literallayout.003.html b/src/test/resources/expected/literallayout.003.html index 6b221ec586..0db9113cdb 100644 --- a/src/test/resources/expected/literallayout.003.html +++ b/src/test/resources/expected/literallayout.003.html @@ -1,8 +1,8 @@ -Unit test: literallayout.003 Unit test: literallayout.003
LiteralLayout: This is a test +Unit test: literallayout.003 Unit test: literallayout.003
LiteralLayout: This is a test Only a test. Had this been a real emegency, We would have fled in terror -And you would not have been informed.LiteralLayout(monospaced): This is a test +And you would not have been informed.LiteralLayout(monospaced): This is a test Only a test. Had this been a real emegency, We would have fled in terror diff --git a/src/test/resources/expected/literallayout.004.html b/src/test/resources/expected/literallayout.004.html index 2451011614..999f98c96d 100644 --- a/src/test/resources/expected/literallayout.004.html +++ b/src/test/resources/expected/literallayout.004.html @@ -1,12 +1,12 @@ -Unit test: literallayout.004 Unit test: literallayout.004
LiteralLayout: This is a test without literal +Unit test: literallayout.004 Unit test: literallayout.004
LiteralLayout: This is a test without literal Only a test. Had this been a real emegency, We would have fled in terror -And you would not have been informed.LiteralLayout: This is a test with literal
+And you would not have been informed.LiteralLayout: This is a test with literal
Only a test.
Had this been a real emegency,
We would have fled in terror
-And you would not have been informed.
LiteralLayout(monospaced): This is a test +And you would not have been informed.
LiteralLayout(monospaced): This is a test Only a test. Had this been a real emegency, We would have fled in terror diff --git a/src/test/resources/expected/literallayout.005.html b/src/test/resources/expected/literallayout.005.html index 541dc79448..e7857e31f8 100644 --- a/src/test/resources/expected/literallayout.005.html +++ b/src/test/resources/expected/literallayout.005.html @@ -1,4 +1,4 @@ -Unit test: literallayout.004 Unit test: literallayout.004
These literal layouts explicitly use the ‘table’ style.
| +Unit test: literallayout.004 Unit test: literallayout.004
These literal layouts explicitly use the ‘table’ style.
| | | | @@ -8,7 +8,7 @@ Had this been a real emegency, We would have fled in terror And you would not have been informed. -
| +
| | | | @@ -18,7 +18,7 @@Had this been a real emegency,
We would have fled in terror
And you would not have been informed.
-
| +
| | | | diff --git a/src/test/resources/expected/methodsynopsis.001.html b/src/test/resources/expected/methodsynopsis.001.html index 2ee46bd7c8..38fdc02899 100644 --- a/src/test/resources/expected/methodsynopsis.001.html +++ b/src/test/resources/expected/methodsynopsis.001.html @@ -1,6 +1,6 @@ -Article wrapper Article wrapper
Here's a
methodsynopsis
in aclasssynopsis
:class Foo { +Article wrapper Article wrapper
Here's a
methodsynopsis
in aclasssynopsis
:class Foo { public static double getQuote(String symbol, double price); }
Here's a
methodsynopsis
outside -aclasssynopsis
:public static double getQuote(String symbol, +a
classsynopsis
:\ No newline at end of file diff --git a/src/test/resources/expected/packagesynopsis.001.html b/src/test/resources/expected/packagesynopsis.001.html index 6e1e7b711b..b20bca9271 100644 --- a/src/test/resources/expected/packagesynopsis.001.html +++ b/src/test/resources/expected/packagesynopsis.001.html @@ -1,6 +1,6 @@ -public static double getQuote(String symbol, double price);
Unit test: packagesynopsis.001 Unit test: packagesynopsis.001
packageorg.example.package
; -// This is just a made up example. -// Mostly.
public class Catalog { +Unit test: packagesynopsis.001 Unit test: packagesynopsis.001
packageorg.example.package
; +// This is just a made up example. +// Mostly.
public class Catalog { public static final int BASE = CatalogEntry.addEntryType("BASE", 1); public Catalog(); protected copyReaders(Catalog newCatalog); diff --git a/src/test/resources/expected/panelset.001.html b/src/test/resources/expected/panelset.001.html index 6918e06c4e..3f031de0c2 100644 --- a/src/test/resources/expected/panelset.001.html +++ b/src/test/resources/expected/panelset.001.html @@ -1,5 +1,5 @@Unit Test: panelset.001 Unit Test: panelset.001
This unit test is an experiment in providing a “panel set” presentation -for a variable list.
1 |#!/usr/bin/env python3
+for a variable list.1 |#!/usr/bin/env python3
||
"""This is a wrapper script around the Saxon command line interface.
|It attempts to make sure that the classpath is correct and that third
@@ -16,7 +16,7 @@ 15 ||
class JavaClassRunnerException(Exception):
|"""Subclass of Exception for errors raised by the runner."""
-And so on, for another 600 lines or so.
1 |
#!/usr/bin/env python3
+And so on, for another 600 lines or so.
1 |#!/usr/bin/env python3
||
"""This is yet another link checker. Was it better to write my own
|than find an existing cross-platform version? Maybe not, but it
diff --git a/src/test/resources/expected/para.004.html b/src/test/resources/expected/para.004.html index afe64e5262..4088583693 100644 --- a/src/test/resources/expected/para.004.html +++ b/src/test/resources/expected/para.004.html @@ -1,3 +1,3 @@ -Unit test: para.004 Unit test: para.004
Ordinary paragraph, followed by a paragraph with a program listing.
This is some text followed by a programlisting:
|<!-- stuff -->
+Unit test: para.004 \ No newline at end of file diff --git a/src/test/resources/expected/presentation.001.html b/src/test/resources/expected/presentation.001.html index 4d60102cb3..31d7213c2e 100644 --- a/src/test/resources/expected/presentation.001.html +++ b/src/test/resources/expected/presentation.001.html @@ -6,7 +6,7 @@ (or from Unit test: para.004
Ordinary paragraph, followed by a paragraph with a program listing.
This is some text followed by a programlisting:
|<!-- stuff -->
|and nonsense
Ordinary paragraph.
localhost
withhttp
), presentation mode can use local storage to synchronize display in different browser windows.
Add -
|<meta xmlns="http://www.w3.org/1999/xhtml"
+to the|<meta xmlns="http://www.w3.org/1999/xhtml"
|name="localStorage.key" content="keyName"/>
info
of your document.The key name is irrelevant, but is used to coordinate between windows. @@ -14,7 +14,7 @@ 1
Synchronized displays are useful for reading speaker notes in one view while presenting the “normal” view to your audience.
Speaker notes
Speaker notes can be placed on any page.
They are not displayed as part of the normal presentation.
They can be revealed by selecting notes view.
Use the
speaker-notes
role to add speaker notes: -|<para role="speaker-notes">When you present this page
+|<para role="speaker-notes">When you present this page
|observe that the speaker notes are normally hidden, but
|can be revealed by pressing <keycap>S</keycap>.</para>
When you present this page diff --git a/src/test/resources/expected/programlisting.001.html b/src/test/resources/expected/programlisting.001.html index ffbce5d036..60adea29ed 100644 --- a/src/test/resources/expected/programlisting.001.html +++ b/src/test/resources/expected/programlisting.001.html @@ -1,4 +1,4 @@ -
Article wrapper Article wrapper
1 |ProgramListing: This is a test
+Article wrapper Article wrapper
1 |ProgramListing: This is a test
|Only a test.
|Had this been a real emegency,
|We would have fled in terror
diff --git a/src/test/resources/expected/programlisting.002.html b/src/test/resources/expected/programlisting.002.html index 519ea7a270..2b603a37c1 100644 --- a/src/test/resources/expected/programlisting.002.html +++ b/src/test/resources/expected/programlisting.002.html @@ -1,4 +1,4 @@ -Article wrapper Article wrapper
1 |<?xml version="1.0" encoding="utf-8"?>
+Article wrapper Article wrapper
1 |<?xml version="1.0" encoding="utf-8"?>
|<article xmlns="http://docbook.org/ns/docbook" version="5.0">
|<title>Article wrapper</title>
|<programlisting language="xml"><inlinemediaobject>
diff --git a/src/test/resources/expected/programlisting.003.html b/src/test/resources/expected/programlisting.003.html index f01e9c8b23..2a1fc85063 100644 --- a/src/test/resources/expected/programlisting.003.html +++ b/src/test/resources/expected/programlisting.003.html @@ -1,4 +1,4 @@ -Unit test: programlisting.003 Unit test: programlisting.003
1