summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-07-10 15:14:09 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-07-10 15:14:09 +0000
commit178e4af9c75454f066814563406c1d10efbc87c5 (patch)
treea83e41656f5ddfa936a0b1bf4d85a1dce8c8b668
parent0e6be80b91aeb8c4cc2f1ee4a36a096ebd54ae49 (diff)
downloadlibxslt-178e4af9c75454f066814563406c1d10efbc87c5.tar.gz
libxslt-178e4af9c75454f066814563406c1d10efbc87c5.tar.bz2
libxslt-178e4af9c75454f066814563406c1d10efbc87c5.zip
added Embedding Stylesheets added the test from the REC about it tried to
* FEATURES libxslt/xsltproc.c libxslt/transform.c libxslt/xsltInternals.h: added Embedding Stylesheets * tests/REC/Makefile.am tests/REC/stand-2.7-1.*: added the test from the REC about it * libxslt/transform.c libxslt/extra.[ch] libxslt/preproc.c: tried to accomodate the various (and changing) proprietary ways of implementing chunking. * tests/docbook/result/xtchunk/html: now output is generated in ISO-8859-1 Daniel
-rw-r--r--ChangeLog12
-rw-r--r--FEATURES2
-rw-r--r--libxslt/extra.c4
-rw-r--r--libxslt/extra.h7
-rw-r--r--libxslt/preproc.c3
-rw-r--r--libxslt/transform.c324
-rw-r--r--libxslt/xslt.c219
-rw-r--r--libxslt/xsltInternals.h1
-rw-r--r--libxslt/xsltproc.c328
-rw-r--r--tests/REC/Makefile.am10
-rw-r--r--tests/REC/stand-2.7-1.dtd6
-rw-r--r--tests/REC/stand-2.7-1.out4
-rw-r--r--tests/REC/stand-2.7-1.stand.out13
-rw-r--r--tests/REC/stand-2.7-1.xml23
-rw-r--r--tests/REC/stand-2.7-1.xsl8
-rw-r--r--tests/docbook/result/xtchunk/html/apa.orig16
-rw-r--r--tests/docbook/result/xtchunk/html/apas17.orig14
-rw-r--r--tests/docbook/result/xtchunk/html/apas18.orig14
-rw-r--r--tests/docbook/result/xtchunk/html/index.orig40
-rw-r--r--tests/docbook/result/xtchunk/html/indexs02.orig50
-rw-r--r--tests/docbook/result/xtchunk/html/indexs03.orig22
-rw-r--r--tests/docbook/result/xtchunk/html/indexs04.orig108
-rw-r--r--tests/docbook/result/xtchunk/html/indexs05.orig18
-rw-r--r--tests/docbook/result/xtchunk/html/indexs06.orig30
-rw-r--r--tests/docbook/result/xtchunk/html/indexs07.orig20
-rw-r--r--tests/docbook/result/xtchunk/html/indexs08.orig20
-rw-r--r--tests/docbook/result/xtchunk/html/indexs09.orig20
-rw-r--r--tests/docbook/result/xtchunk/html/indexs10.orig16
-rw-r--r--tests/docbook/result/xtchunk/html/indexs11.orig16
-rw-r--r--tests/docbook/result/xtchunk/html/indexs12.orig24
-rw-r--r--tests/docbook/result/xtchunk/html/indexs13.orig16
-rw-r--r--tests/docbook/result/xtchunk/html/indexs14.orig16
-rw-r--r--tests/docbook/result/xtchunk/html/indexs15.orig16
33 files changed, 881 insertions, 559 deletions
diff --git a/ChangeLog b/ChangeLog
index c1152412..7a51377d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Tue Jul 10 16:48:43 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+ * FEATURES libxslt/xsltproc.c libxslt/transform.c
+ libxslt/xsltInternals.h: added Embedding Stylesheets
+ * tests/REC/Makefile.am tests/REC/stand-2.7-1.*: added the test
+ from the REC about it
+ * libxslt/transform.c libxslt/extra.[ch] libxslt/preproc.c:
+ tried to accomodate the various (and changing) proprietary
+ ways of implementing chunking.
+ * tests/docbook/result/xtchunk/html: now output is generated in
+ ISO-8859-1
+
Mon Jul 9 23:23:50 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* libxslt/xsltproc.c: small cleanup
diff --git a/FEATURES b/FEATURES
index d303c1ee..7003d46a 100644
--- a/FEATURES
+++ b/FEATURES
@@ -21,7 +21,7 @@ YES version = number
YES Literal Result Element as Stylesheet
-NO Embedding Stylesheets
+YES Embedding Stylesheets
NO mediaType
diff --git a/libxslt/extra.c b/libxslt/extra.c
index 17f82087..984c7df4 100644
--- a/libxslt/extra.c
+++ b/libxslt/extra.c
@@ -182,4 +182,8 @@ xsltRegisterExtras(xsltTransformContextPtr ctxt) {
XSLT_XALAN_NAMESPACE, xsltDocumentElem);
xsltRegisterExtElement(ctxt, (const xmlChar *) "document",
XSLT_XT_NAMESPACE, xsltDocumentElem);
+ xsltRegisterExtElement(ctxt, (const xmlChar *) "document",
+ XSLT_NAMESPACE, xsltDocumentElem);
+ xsltRegisterExtElement(ctxt, (const xmlChar *) "document",
+ XSLT_EXSLT_COMMON_NAMESPACE, xsltDocumentElem);
}
diff --git a/libxslt/extra.h b/libxslt/extra.h
index 5bc84cdc..394517b3 100644
--- a/libxslt/extra.h
+++ b/libxslt/extra.h
@@ -38,6 +38,13 @@ extern "C" {
#define XSLT_XT_NAMESPACE ((xmlChar *) "http://www.jclark.com/xt")
/**
+ * XSLT_EXSLT_COMMON_NAMESPACE:
+ *
+ * This is EXSLT common namespace http://www.exslt.org/exsl/exsl.html
+ */
+#define XSLT_EXSLT_COMMON_NAMESPACE ((xmlChar *) "http://exslt.org/common")
+
+/**
* XSLT_XALAN_NAMESPACE:
*
* This is the Apache project XALAN processor namespace for extensions
diff --git a/libxslt/preproc.c b/libxslt/preproc.c
index d7c2bfb2..37c515cf 100644
--- a/libxslt/preproc.c
+++ b/libxslt/preproc.c
@@ -244,9 +244,6 @@ xsltDocumentComp(xsltStylesheetPtr style, xmlNodePtr inst) {
}
}
if (!comp->has_filename) {
- xsltGenericError(xsltGenericErrorContext,
- "xsltDocumentComp: could not find the href\n");
- style->errors++;
goto error;
}
diff --git a/libxslt/transform.c b/libxslt/transform.c
index 0d74b444..7fd5d62b 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -50,7 +50,7 @@
#include "preproc.h"
#ifdef WITH_XSLT_DEBUG
-#define WITH_XSLT_DEBUG_PROCESS
+#define WITH_XSLT_DEBUG_EXTRA
#endif
int xsltMaxDepth = 500;
@@ -1310,8 +1310,7 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
const xmlChar *doctypeSystem;
const xmlChar *version;
- if ((ctxt == NULL) || (node == NULL) || (inst == NULL)
- || (comp == NULL))
+ if ((ctxt == NULL) || (node == NULL) || (inst == NULL) || (comp == NULL))
return;
if (comp->filename == NULL) {
@@ -1324,6 +1323,10 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
URL = xsltEvalAttrValueTemplate(ctxt, inst,
(const xmlChar *) "file",
XSLT_SAXON_NAMESPACE);
+ if (URL == NULL)
+ URL = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *) "href",
+ XSLT_SAXON_NAMESPACE);
} else if (xmlStrEqual(inst->name, (const xmlChar *) "write")) {
#ifdef WITH_XSLT_DEBUG_EXTRA
xsltGenericDebug(xsltGenericDebugContext,
@@ -1333,27 +1336,20 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
(const xmlChar *)
"select",
XSLT_XALAN_NAMESPACE);
+ if (URL == NULL)
+ URL = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *)
+ "file",
+ XSLT_XALAN_NAMESPACE);
+ if (URL == NULL)
+ URL = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *)
+ "href",
+ XSLT_XALAN_NAMESPACE);
} else if (xmlStrEqual(inst->name, (const xmlChar *) "document")) {
URL = xsltEvalAttrValueTemplate(ctxt, inst,
(const xmlChar *) "href",
- XSLT_XT_NAMESPACE);
- if (URL == NULL) {
-#ifdef WITH_XSLT_DEBUG_EXTRA
- xsltGenericDebug(xsltGenericDebugContext,
- "Found xslt11:document construct\n");
-#endif
- URL = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *)
- "href",
- XSLT_NAMESPACE);
- comp->ver11 = 1;
- } else {
-#ifdef WITH_XSLT_DEBUG_EXTRA
- xsltGenericDebug(xsltGenericDebugContext,
- "Found xt:document extension\n");
-#endif
- comp->ver11 = 0;
- }
+ NULL);
}
} else {
@@ -1391,157 +1387,153 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
* Version described in 1.1 draft allows full parametrization
* of the output.
*/
- if (comp->ver11) {
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *) "version",
- XSLT_NAMESPACE);
- if (prop != NULL) {
- if (style->version != NULL)
- xmlFree(style->version);
- style->version = prop;
- }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *) "encoding",
- XSLT_NAMESPACE);
- if (prop != NULL) {
- if (style->encoding != NULL)
- xmlFree(style->encoding);
- style->encoding = prop;
- }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *) "method",
- XSLT_NAMESPACE);
- if (prop != NULL) {
- const xmlChar *URI;
-
- if (style->method != NULL)
- xmlFree(style->method);
- style->method = NULL;
- if (style->methodURI != NULL)
- xmlFree(style->methodURI);
- style->methodURI = NULL;
-
- URI = xsltGetQNameURI(inst, &prop);
- if (prop == NULL) {
- style->errors++;
- } else if (URI == NULL) {
- if ((xmlStrEqual(prop, (const xmlChar *) "xml")) ||
- (xmlStrEqual(prop, (const xmlChar *) "html")) ||
- (xmlStrEqual(prop, (const xmlChar *) "text"))) {
- style->method = prop;
- } else {
- xsltGenericError(xsltGenericErrorContext,
- "invalid value for method: %s\n", prop);
- style->warnings++;
- }
- } else {
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *) "version",
+ NULL);
+ if (prop != NULL) {
+ if (style->version != NULL)
+ xmlFree(style->version);
+ style->version = prop;
+ }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *) "encoding",
+ NULL);
+ if (prop != NULL) {
+ if (style->encoding != NULL)
+ xmlFree(style->encoding);
+ style->encoding = prop;
+ }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *) "method",
+ NULL);
+ if (prop != NULL) {
+ const xmlChar *URI;
+
+ if (style->method != NULL)
+ xmlFree(style->method);
+ style->method = NULL;
+ if (style->methodURI != NULL)
+ xmlFree(style->methodURI);
+ style->methodURI = NULL;
+
+ URI = xsltGetQNameURI(inst, &prop);
+ if (prop == NULL) {
+ style->errors++;
+ } else if (URI == NULL) {
+ if ((xmlStrEqual(prop, (const xmlChar *) "xml")) ||
+ (xmlStrEqual(prop, (const xmlChar *) "html")) ||
+ (xmlStrEqual(prop, (const xmlChar *) "text"))) {
style->method = prop;
- style->methodURI = xmlStrdup(URI);
+ } else {
+ xsltGenericError(xsltGenericErrorContext,
+ "invalid value for method: %s\n", prop);
+ style->warnings++;
}
- }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *)
- "doctype-system", XSLT_NAMESPACE);
- if (prop != NULL) {
- if (style->doctypeSystem != NULL)
- xmlFree(style->doctypeSystem);
- style->doctypeSystem = prop;
- }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *)
- "doctype-public", XSLT_NAMESPACE);
- if (prop != NULL) {
- if (style->doctypePublic != NULL)
- xmlFree(style->doctypePublic);
- style->doctypePublic = prop;
- }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *) "standalone",
- XSLT_NAMESPACE);
- if (prop != NULL) {
- if (xmlStrEqual(prop, (const xmlChar *) "yes")) {
- style->standalone = 1;
- } else if (xmlStrEqual(prop, (const xmlChar *) "no")) {
- style->standalone = 0;
- } else {
- xsltGenericError(xsltGenericErrorContext,
- "invalid value for standalone: %s\n",
- prop);
- style->warnings++;
- }
- xmlFree(prop);
- }
+ } else {
+ style->method = prop;
+ style->methodURI = xmlStrdup(URI);
+ }
+ }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *)
+ "doctype-system", NULL);
+ if (prop != NULL) {
+ if (style->doctypeSystem != NULL)
+ xmlFree(style->doctypeSystem);
+ style->doctypeSystem = prop;
+ }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *)
+ "doctype-public", NULL);
+ if (prop != NULL) {
+ if (style->doctypePublic != NULL)
+ xmlFree(style->doctypePublic);
+ style->doctypePublic = prop;
+ }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *) "standalone",
+ NULL);
+ if (prop != NULL) {
+ if (xmlStrEqual(prop, (const xmlChar *) "yes")) {
+ style->standalone = 1;
+ } else if (xmlStrEqual(prop, (const xmlChar *) "no")) {
+ style->standalone = 0;
+ } else {
+ xsltGenericError(xsltGenericErrorContext,
+ "invalid value for standalone: %s\n",
+ prop);
+ style->warnings++;
+ }
+ xmlFree(prop);
+ }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *) "indent",
- XSLT_NAMESPACE);
- if (prop != NULL) {
- if (xmlStrEqual(prop, (const xmlChar *) "yes")) {
- style->indent = 1;
- } else if (xmlStrEqual(prop, (const xmlChar *) "no")) {
- style->indent = 0;
- } else {
- xsltGenericError(xsltGenericErrorContext,
- "invalid value for indent: %s\n", prop);
- style->warnings++;
- }
- xmlFree(prop);
- }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *) "indent",
+ NULL);
+ if (prop != NULL) {
+ if (xmlStrEqual(prop, (const xmlChar *) "yes")) {
+ style->indent = 1;
+ } else if (xmlStrEqual(prop, (const xmlChar *) "no")) {
+ style->indent = 0;
+ } else {
+ xsltGenericError(xsltGenericErrorContext,
+ "invalid value for indent: %s\n", prop);
+ style->warnings++;
+ }
+ xmlFree(prop);
+ }
- prop = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *)
- "omit-xml-declaration",
- XSLT_NAMESPACE);
- if (prop != NULL) {
- if (xmlStrEqual(prop, (const xmlChar *) "yes")) {
- style->omitXmlDeclaration = 1;
- } else if (xmlStrEqual(prop, (const xmlChar *) "no")) {
- style->omitXmlDeclaration = 0;
- } else {
- xsltGenericError(xsltGenericErrorContext,
- "invalid value for omit-xml-declaration: %s\n",
- prop);
- style->warnings++;
- }
- xmlFree(prop);
- }
+ prop = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *)
+ "omit-xml-declaration",
+ NULL);
+ if (prop != NULL) {
+ if (xmlStrEqual(prop, (const xmlChar *) "yes")) {
+ style->omitXmlDeclaration = 1;
+ } else if (xmlStrEqual(prop, (const xmlChar *) "no")) {
+ style->omitXmlDeclaration = 0;
+ } else {
+ xsltGenericError(xsltGenericErrorContext,
+ "invalid value for omit-xml-declaration: %s\n",
+ prop);
+ style->warnings++;
+ }
+ xmlFree(prop);
+ }
- elements = xsltEvalAttrValueTemplate(ctxt, inst,
- (const xmlChar *)
- "cdata-section-elements",
- XSLT_NAMESPACE);
- if (elements != NULL) {
- if (style->stripSpaces == NULL)
- style->stripSpaces = xmlHashCreate(10);
- if (style->stripSpaces == NULL)
- return;
-
- element = elements;
- while (*element != 0) {
- while (IS_BLANK(*element))
- element++;
- if (*element == 0)
- break;
- end = element;
- while ((*end != 0) && (!IS_BLANK(*end)))
- end++;
- element = xmlStrndup(element, end - element);
- if (element) {
+ elements = xsltEvalAttrValueTemplate(ctxt, inst,
+ (const xmlChar *)
+ "cdata-section-elements",
+ NULL);
+ if (elements != NULL) {
+ if (style->stripSpaces == NULL)
+ style->stripSpaces = xmlHashCreate(10);
+ if (style->stripSpaces == NULL)
+ return;
+
+ element = elements;
+ while (*element != 0) {
+ while (IS_BLANK(*element))
+ element++;
+ if (*element == 0)
+ break;
+ end = element;
+ while ((*end != 0) && (!IS_BLANK(*end)))
+ end++;
+ element = xmlStrndup(element, end - element);
+ if (element) {
#ifdef WITH_XSLT_DEBUG_PARSING
- xsltGenericDebug(xsltGenericDebugContext,
- "add cdata section output element %s\n",
- element);
+ xsltGenericDebug(xsltGenericDebugContext,
+ "add cdata section output element %s\n",
+ element);
#endif
- xmlHashAddEntry(style->stripSpaces, element,
- (xmlChar *) "cdata");
- xmlFree(element);
- }
- element = end;
- }
- xmlFree(elements);
- }
- } else {
- xsltParseStylesheetOutput(style, inst);
+ xmlHashAddEntry(style->stripSpaces, element,
+ (xmlChar *) "cdata");
+ xmlFree(element);
+ }
+ element = end;
+ }
+ xmlFree(elements);
}
/*
@@ -1612,7 +1604,7 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
#ifdef WITH_XSLT_DEBUG_EXTRA
} else {
xsltGenericDebug(xsltGenericDebugContext,
- "Wrote %d bytes to %s\n", ret,, filename);
+ "Wrote %d bytes to %s\n", ret, filename);
#endif
}
diff --git a/libxslt/xslt.c b/libxslt/xslt.c
index cb71521d..4ff5f0a7 100644
--- a/libxslt/xslt.c
+++ b/libxslt/xslt.c
@@ -2,8 +2,12 @@
* xslt.c: Implemetation of an XSL Transformation 1.0 engine
*
* Reference:
+ * XSLT specification
* http://www.w3.org/TR/1999/REC-xslt-19991116
*
+ * Associating Style Sheets with XML documents
+ * http://www.w3.org/1999/06/REC-xml-stylesheet-19990629
+ *
* See Copyright for the status of this software.
*
* daniel@veillard.com
@@ -1860,3 +1864,218 @@ xsltParseStylesheetFile(const xmlChar* filename) {
return(ret);
}
+/************************************************************************
+ * *
+ * Handling of Stylesheet PI *
+ * *
+ ************************************************************************/
+
+#define CUR (*cur)
+#define SKIP(val) cur += (val)
+#define NXT(val) cur[(val)]
+#define SKIP_BLANKS \
+ while (IS_BLANK(CUR)) NEXT
+#define NEXT ((*cur) ? cur++ : cur)
+
+/**
+ * xsltParseStylesheetPI:
+ * value: the value of the PI
+ *
+ * This function checks that the type is text/xml and extracts
+ * the URI-Reference for the stylesheet
+ *
+ * Returns the URI-Reference for the stylesheet or NULL (it need to
+ * be freed by the caller)
+ */
+static xmlChar *
+xsltParseStylesheetPI(const xmlChar *value) {
+ const xmlChar *cur;
+ const xmlChar *start;
+ xmlChar *val;
+ xmlChar tmp;
+ xmlChar *href = NULL;
+ int isXml = 0;
+
+ if (value == NULL)
+ return(NULL);
+
+ cur = value;
+ while (CUR != 0) {
+ SKIP_BLANKS;
+ if ((CUR == 't') && (NXT(1) == 'y') && (NXT(2) == 'p') &&
+ (NXT(3) == 'e')) {
+ SKIP(4);
+ SKIP_BLANKS;
+ if (CUR != '=')
+ continue;
+ NEXT;
+ if ((CUR != '\'') && (CUR != '"'))
+ continue;
+ tmp = CUR;
+ NEXT;
+ start = cur;
+ while ((CUR != 0) && (CUR != tmp))
+ NEXT;
+ if (CUR != tmp)
+ continue;
+ val = xmlStrndup(start, cur - start);
+ NEXT;
+ if (val == NULL)
+ return(NULL);
+ if ((xmlStrcasecmp(val, BAD_CAST "text/xml")) &&
+ (xmlStrcasecmp(val, BAD_CAST "text/xsl"))) {
+ xmlFree(val);
+ break;
+ }
+ isXml = 1;
+ xmlFree(val);
+ } else if ((CUR == 'h') && (NXT(1) == 'r') && (NXT(2) == 'e') &&
+ (NXT(3) == 'f')) {
+ SKIP(4);
+ SKIP_BLANKS;
+ if (CUR != '=')
+ continue;
+ NEXT;
+ if ((CUR != '\'') && (CUR != '"'))
+ continue;
+ tmp = CUR;
+ NEXT;
+ start = cur;
+ while ((CUR != 0) && (CUR != tmp))
+ NEXT;
+ if (CUR != tmp)
+ continue;
+ if (href == NULL)
+ href = xmlStrndup(start, cur - start);
+ NEXT;
+ } else {
+ while ((CUR != 0) && (!IS_BLANK(CUR)))
+ NEXT;
+ }
+
+ }
+
+ if (!isXml) {
+ if (href != NULL)
+ xmlFree(href);
+ href = NULL;
+ }
+ return(href);
+}
+
+/**
+ * xsltLoadStylesheetPI:
+ * doc: a document to process
+ *
+ * This function tries to locate the stylesheet PI in the given document
+ * If found, and if contained within the document, it will extract
+ * that subtree to build the stylesheet to process @doc (doc itself will
+ * be modified). If found but referencing an external document it will
+ * attempt to load it and generate a stylesheet from it. In both cases,
+ * the resulting stylesheet and the document need to be freed once the
+ * transformation is done.
+ *
+ * Returns a new XSLT stylesheet structure or NULL if not found.
+ */
+xsltStylesheetPtr
+xsltLoadStylesheetPI(xmlDocPtr doc) {
+ xmlNodePtr child;
+ xsltStylesheetPtr ret = NULL;
+ xmlChar *href = NULL;
+ xmlURIPtr URI;
+
+ if (doc == NULL)
+ return(NULL);
+
+ /*
+ * Find the text/xml stylesheet PI id any before the root
+ */
+ child = doc->children;
+ while ((child != NULL) && (child->type != XML_ELEMENT_NODE)) {
+ if ((child->type == XML_PI_NODE) &&
+ (xmlStrEqual(child->name, BAD_CAST "xml-stylesheet"))) {
+ href = xsltParseStylesheetPI(child->content);
+ if (href != NULL)
+ break;
+ }
+ child = child->next;
+ }
+
+ /*
+ * If found check the href to select processing
+ */
+ if (href != NULL) {
+#ifdef WITH_XSLT_DEBUG_PARSING
+ xsltGenericDebug(xsltGenericDebugContext,
+ "xsltLoadStylesheetPI : found PI href=%s\n", href);
+#endif
+ URI = xmlParseURI((const char *) href);
+ if (URI == NULL) {
+ xsltGenericError(xsltGenericErrorContext,
+ "xml-stylesheet : href %s is not valid\n", href);
+ xmlFree(href);
+ return(NULL);
+ }
+ if ((URI->fragment != NULL) && (URI->scheme == NULL) &&
+ (URI->opaque == NULL) && (URI->authority == NULL) &&
+ (URI->server == NULL) && (URI->user == NULL) &&
+ (URI->path == NULL) && (URI->query == NULL)) {
+ xmlAttrPtr ID;
+
+#ifdef WITH_XSLT_DEBUG_PARSING
+ xsltGenericDebug(xsltGenericDebugContext,
+ "xsltLoadStylesheetPI : Reference to ID %s\n", href);
+#endif
+ if (URI->fragment[0] == '#')
+ ID = xmlGetID(doc, (const xmlChar *) &(URI->fragment[1]));
+ else
+ ID = xmlGetID(doc, (const xmlChar *) URI->fragment);
+ if (ID == NULL) {
+ xsltGenericError(xsltGenericErrorContext,
+ "xml-stylesheet : no ID %s found\n", URI->fragment);
+ } else {
+ xmlDocPtr fake;
+ xmlNodePtr subtree;
+
+ /*
+ * move the subtree in a new document passed to
+ * the stylesheet analyzer
+ */
+ subtree = ID->parent;
+ fake = xmlNewDoc(NULL);
+ if (fake != NULL) {
+ xmlUnlinkNode(subtree);
+ xmlAddChild((xmlNodePtr) fake, subtree);
+ ret = xsltParseStylesheetDoc(fake);
+ if (ret == NULL)
+ xmlFreeDoc(fake);
+ }
+ }
+ } else {
+ xmlChar *URL;
+
+ /*
+ * Reference to an external stylesheet
+ */
+ URL = xmlBuildURI(href, xmlNodeGetBase(doc, (xmlNodePtr) doc));
+ if (URL != NULL) {
+#ifdef WITH_XSLT_DEBUG_PARSING
+ xsltGenericDebug(xsltGenericDebugContext,
+ "xsltLoadStylesheetPI : fetching %s\n", URL);
+#endif
+ ret = xsltParseStylesheetFile(URL);
+ xmlFree(URL);
+ } else {
+#ifdef WITH_XSLT_DEBUG_PARSING
+ xsltGenericDebug(xsltGenericDebugContext,
+ "xsltLoadStylesheetPI : fetching %s\n", href);
+#endif
+ ret = xsltParseStylesheetFile(href);
+ }
+ }
+ xmlFreeURI(URI);
+ xmlFree(href);
+ }
+ return(ret);
+}
+
diff --git a/libxslt/xsltInternals.h b/libxslt/xsltInternals.h
index a2689ad1..e6d45317 100644
--- a/libxslt/xsltInternals.h
+++ b/libxslt/xsltInternals.h
@@ -436,6 +436,7 @@ xsltStylesheetPtr xsltParseStylesheetProcess(xsltStylesheetPtr ret,
void xsltParseStylesheetOutput(xsltStylesheetPtr style,
xmlNodePtr cur);
xsltStylesheetPtr xsltParseStylesheetDoc (xmlDocPtr doc);
+xsltStylesheetPtr xsltLoadStylesheetPI (xmlDocPtr doc);
void xsltNumberFormat (xsltTransformContextPtr ctxt,
xsltNumberDataPtr data,
xmlNodePtr node);
diff --git a/libxslt/xsltproc.c b/libxslt/xsltproc.c
index 44ea38a6..b1694b02 100644
--- a/libxslt/xsltproc.c
+++ b/libxslt/xsltproc.c
@@ -68,6 +68,11 @@ static int profile = 0;
static int nonet;
static xmlExternalEntityLoader defaultLoader = NULL;
+static struct timeval begin, end;
+static const char *params[16 + 1];
+static int nbparams = 0;
+static const char *output = NULL;
+
static xmlParserInputPtr
xsltNoNetExternalEntityLoader(const char *URL, const char *ID,
xmlParserCtxtPtr ctxt) {
@@ -87,6 +92,145 @@ xsltNoNetExternalEntityLoader(const char *URL, const char *ID,
return(NULL);
}
+static void
+xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
+ xmlDocPtr res;
+
+#ifdef LIBXML_XINCLUDE_ENABLED
+ if (xinclude) {
+ if (timing)
+ gettimeofday(&begin, NULL);
+ xmlXIncludeProcess(doc);
+ if (timing) {
+ long msec;
+
+ gettimeofday(&end, NULL);
+ msec = end.tv_sec - begin.tv_sec;
+ msec *= 1000;
+ msec += (end.tv_usec - begin.tv_usec) / 1000;
+ fprintf(stderr, "XInclude processing %s took %ld ms\n",
+ filename, msec);
+ }
+ }
+#endif
+ if (timing)
+ gettimeofday(&begin, NULL);
+ if (output == NULL) {
+ if (repeat) {
+ int j;
+
+ for (j = 1; j < repeat; j++) {
+ res = xsltApplyStylesheet(cur, doc, params);
+ xmlFreeDoc(res);
+ xmlFreeDoc(doc);
+#ifdef LIBXML_HTML_ENABLED
+ if (html)
+ doc = htmlParseFile(filename, NULL);
+ else
+#endif
+#ifdef LIBXML_DOCB_ENABLED
+ if (docbook)
+ doc = docbParseFile(filename, NULL);
+ else
+#endif
+ doc = xmlParseFile(filename);
+ }
+ }
+ if (profile) {
+ res = xsltProfileStylesheet(cur, doc, params, stderr);
+ } else {
+ res = xsltApplyStylesheet(cur, doc, params);
+ }
+ if (timing) {
+ long msec;
+
+ gettimeofday(&end, NULL);
+ msec = end.tv_sec - begin.tv_sec;
+ msec *= 1000;
+ msec += (end.tv_usec - begin.tv_usec) / 1000;
+ if (repeat)
+ fprintf(stderr,
+ "Applying stylesheet %d times took %ld ms\n",
+ repeat, msec);
+ else
+ fprintf(stderr,
+ "Applying stylesheet took %ld ms\n", msec);
+ }
+ xmlFreeDoc(doc);
+ if (res == NULL) {
+ fprintf(stderr, "no result for %s\n", filename);
+ return;
+ }
+ if (noout) {
+ xmlFreeDoc(res);
+ return;
+ }
+#ifdef LIBXML_DEBUG_ENABLED
+ if (debug)
+ xmlDebugDumpDocument(stdout, res);
+ else {
+#endif
+ if (cur->methodURI == NULL) {
+ if (timing)
+ gettimeofday(&begin, NULL);
+ xsltSaveResultToFile(stdout, res, cur);
+ if (timing) {
+ long msec;
+
+ gettimeofday(&end, NULL);
+ msec = end.tv_sec - begin.tv_sec;
+ msec *= 1000;
+ msec += (end.tv_usec - begin.tv_usec) / 1000;
+ fprintf(stderr, "Saving result took %ld ms\n",
+ msec);
+ }
+ } else {
+ if (xmlStrEqual
+ (cur->method, (const xmlChar *) "xhtml")) {
+ fprintf(stderr, "non standard output xhtml\n");
+ if (timing)
+ gettimeofday(&begin, NULL);
+ xsltSaveResultToFile(stdout, res, cur);
+ if (timing) {
+ long msec;
+
+ gettimeofday(&end, NULL);
+ msec = end.tv_sec - begin.tv_sec;
+ msec *= 1000;
+ msec +=
+ (end.tv_usec - begin.tv_usec) / 1000;
+ fprintf(stderr,
+ "Saving result took %ld ms\n",
+ msec);
+ }
+ } else {
+ fprintf(stderr,
+ "Unsupported non standard output %s\n",
+ cur->method);
+ }
+ }
+#ifdef LIBXML_DEBUG_ENABLED
+ }
+#endif
+
+ xmlFreeDoc(res);
+ } else {
+ xsltRunStylesheet(cur, doc, params, output, NULL, NULL);
+ if (timing) {
+ long msec;
+
+ gettimeofday(&end, NULL);
+ msec = end.tv_sec - begin.tv_sec;
+ msec *= 1000;
+ msec += (end.tv_usec - begin.tv_usec) / 1000;
+ fprintf(stderr,
+ "Running stylesheet and saving result took %ld ms\n",
+ msec);
+ }
+ xmlFreeDoc(doc);
+ }
+}
+
static void usage(const char *name) {
printf("Usage: %s [options] stylesheet file [file ...]\n", name);
printf(" Options:\n");
@@ -122,18 +266,22 @@ main(int argc, char **argv)
{
int i;
xsltStylesheetPtr cur = NULL;
- xmlDocPtr doc, res;
- struct timeval begin, end;
- const char *params[16 + 1];
- int nbparams = 0;
- const char *output = NULL;
+ xmlDocPtr doc, style;
if (argc <= 1) {
usage(argv[0]);
return (1);
}
+
xmlInitMemory();
- LIBXML_TEST_VERSION defaultLoader = xmlGetExternalEntityLoader();
+
+ LIBXML_TEST_VERSION
+
+ defaultLoader = xmlGetExternalEntityLoader();
+ if (novalid == 0) /* TODO XML_DETECT_IDS | XML_COMPLETE_ATTRS */
+ xmlLoadExtDtdDefaultValue = 6;
+ else
+ xmlLoadExtDtdDefaultValue = 0;
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-"))
break;
@@ -251,10 +399,6 @@ main(int argc, char **argv)
*/
xmlSubstituteEntitiesDefault(1);
- if (novalid == 0) /* TODO XML_DETECT_IDS | XML_COMPLETE_ATTRS */
- xmlLoadExtDtdDefaultValue = 6;
- else
- xmlLoadExtDtdDefaultValue = 0;
for (i = 1; i < argc; i++) {
if ((!strcmp(argv[i], "-maxdepth")) ||
(!strcmp(argv[i], "--maxdepth"))) {
@@ -273,7 +417,7 @@ main(int argc, char **argv)
if ((argv[i][0] != '-') || (strcmp(argv[i], "-") == 0)) {
if (timing)
gettimeofday(&begin, NULL);
- cur = xsltParseStylesheetFile((const xmlChar *) argv[i]);
+ style = xmlParseFile((const char *) argv[i]);
if (timing) {
long msec;
@@ -284,13 +428,26 @@ main(int argc, char **argv)
fprintf(stderr, "Parsing stylesheet %s took %ld ms\n",
argv[i], msec);
}
- if (cur != NULL) {
- if (cur->indent == 1)
- xmlIndentTreeOutput = 1;
- else
- xmlIndentTreeOutput = 0;
- i++;
- }
+ if (style == NULL) {
+ fprintf(stderr, "cannot parse %s\n", argv[i]);
+ cur = NULL;
+ } else {
+ cur = xsltLoadStylesheetPI(style);
+ if (cur != NULL) {
+ /* it is an embedded stylesheet */
+ xsltProcess(style, cur, argv[i]);
+ xsltFreeStylesheet(cur);
+ exit(0);
+ }
+ cur = xsltParseStylesheetDoc(style);
+ if (cur != NULL) {
+ if (cur->indent == 1)
+ xmlIndentTreeOutput = 1;
+ else
+ xmlIndentTreeOutput = 0;
+ i++;
+ }
+ }
break;
}
@@ -304,6 +461,7 @@ main(int argc, char **argv)
if ((cur != NULL) && (cur->errors == 0)) {
for (; i < argc; i++) {
+ doc = NULL;
if (timing)
gettimeofday(&begin, NULL);
#ifdef LIBXML_HTML_ENABLED
@@ -331,139 +489,7 @@ main(int argc, char **argv)
fprintf(stderr, "Parsing document %s took %ld ms\n",
argv[i], msec);
}
-#ifdef LIBXML_XINCLUDE_ENABLED
- if (xinclude) {
- if (timing)
- gettimeofday(&begin, NULL);
- xmlXIncludeProcess(doc);
- if (timing) {
- long msec;
-
- gettimeofday(&end, NULL);
- msec = end.tv_sec - begin.tv_sec;
- msec *= 1000;
- msec += (end.tv_usec - begin.tv_usec) / 1000;
- fprintf(stderr, "XInclude processing %s took %ld ms\n",
- argv[i], msec);
- }
- }
-#endif
- if (timing)
- gettimeofday(&begin, NULL);
- if (output == NULL) {
- if (repeat) {
- int j;
-
- for (j = 1; j < repeat; j++) {
- res = xsltApplyStylesheet(cur, doc, params);
- xmlFreeDoc(res);
- xmlFreeDoc(doc);
-#ifdef LIBXML_HTML_ENABLED
- if (html)
- doc = htmlParseFile(argv[i], NULL);
- else
-#endif
-#ifdef LIBXML_DOCB_ENABLED
- if (docbook)
- doc = docbParseFile(argv[i], NULL);
- else
-#endif
- doc = xmlParseFile(argv[i]);
- }
- }
- if (profile) {
- res = xsltProfileStylesheet(cur, doc, params, stderr);
- } else {
- res = xsltApplyStylesheet(cur, doc, params);
- }
- if (timing) {
- long msec;
-
- gettimeofday(&end, NULL);
- msec = end.tv_sec - begin.tv_sec;
- msec *= 1000;
- msec += (end.tv_usec - begin.tv_usec) / 1000;
- if (repeat)
- fprintf(stderr,
- "Applying stylesheet %d times took %ld ms\n",
- repeat, msec);
- else
- fprintf(stderr,
- "Applying stylesheet took %ld ms\n", msec);
- }
- xmlFreeDoc(doc);
- if (res == NULL) {
- fprintf(stderr, "no result for %s\n", argv[i]);
- continue;
- }
- if (noout) {
- xmlFreeDoc(res);
- continue;
- }
-#ifdef LIBXML_DEBUG_ENABLED
- if (debug)
- xmlDebugDumpDocument(stdout, res);
- else {
-#endif
- if (cur->methodURI == NULL) {
- if (timing)
- gettimeofday(&begin, NULL);
- xsltSaveResultToFile(stdout, res, cur);
- if (timing) {
- long msec;
-
- gettimeofday(&end, NULL);
- msec = end.tv_sec - begin.tv_sec;
- msec *= 1000;
- msec += (end.tv_usec - begin.tv_usec) / 1000;
- fprintf(stderr, "Saving result took %ld ms\n",
- msec);
- }
- } else {
- if (xmlStrEqual
- (cur->method, (const xmlChar *) "xhtml")) {
- fprintf(stderr, "non standard output xhtml\n");
- if (timing)
- gettimeofday(&begin, NULL);
- xsltSaveResultToFile(stdout, res, cur);
- if (timing) {
- long msec;
-
- gettimeofday(&end, NULL);
- msec = end.tv_sec - begin.tv_sec;
- msec *= 1000;
- msec +=
- (end.tv_usec - begin.tv_usec) / 1000;
- fprintf(stderr,
- "Saving result took %ld ms\n",
- msec);
- }
- } else {
- fprintf(stderr,
- "Unsupported non standard output %s\n",
- cur->method);
- }
- }
-#ifdef LIBXML_DEBUG_ENABLED
- }
-#endif
-
- xmlFreeDoc(res);
- } else {
- xsltRunStylesheet(cur, doc, params, output, NULL, NULL);
- if (timing) {
- long msec;
-
- gettimeofday(&end, NULL);
- msec = end.tv_sec - begin.tv_sec;
- msec *= 1000;
- msec += (end.tv_usec - begin.tv_usec) / 1000;
- fprintf(stderr,
- "Running stylesheet and saving result took %ld ms\n",
- msec);
- }
- xmlFreeDoc(doc);
- }
+ xsltProcess(doc, cur, argv[i]);
}
xsltFreeStylesheet(cur);
}
diff --git a/tests/REC/Makefile.am b/tests/REC/Makefile.am
index 83ed42fd..fa396a23 100644
--- a/tests/REC/Makefile.am
+++ b/tests/REC/Makefile.am
@@ -84,4 +84,14 @@ test tests: $(top_builddir)/libxslt/xsltproc
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
rm -f $$name.res ; \
done)
+ @(for i in $(srcdir)/stand*.xml ; do \
+ name=`basename $$i .xml` ; \
+ echo $$name.xml ; \
+ $(top_builddir)/libxslt/xsltproc $(srcdir)/$$name.xml > $$name.res;\
+ if [ ! -f $(srcdir)/$$name.stand.out ] ; then cp $$name.res $(srcdir)/$$name.stand.out ; \
+ else if [ ! -s $$name.res ] ; then echo "Fatal error, no $$name.res\n" ; \
+ else diff $(srcdir)/$$name.stand.out $$name.res ; fi ; fi; \
+ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
+ rm -f $$name.res ; \
+ done)
diff --git a/tests/REC/stand-2.7-1.dtd b/tests/REC/stand-2.7-1.dtd
new file mode 100644
index 00000000..c164fdde
--- /dev/null
+++ b/tests/REC/stand-2.7-1.dtd
@@ -0,0 +1,6 @@
+<!ATTLIST xsl:stylesheet
+ id ID #IMPLIED>
+<!ATTLIST stylesheet
+ id ID #IMPLIED>
+<!ATTLIST para
+ id ID #IMPLIED>
diff --git a/tests/REC/stand-2.7-1.out b/tests/REC/stand-2.7-1.out
new file mode 100644
index 00000000..80654782
--- /dev/null
+++ b/tests/REC/stand-2.7-1.out
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+SUCCESS
+...
+
diff --git a/tests/REC/stand-2.7-1.stand.out b/tests/REC/stand-2.7-1.stand.out
new file mode 100644
index 00000000..f7740d34
--- /dev/null
+++ b/tests/REC/stand-2.7-1.stand.out
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+SUCCESS
+
+
+
+
+
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-weight="bold">
+...
+</fo:block>
+
+
+
diff --git a/tests/REC/stand-2.7-1.xml b/tests/REC/stand-2.7-1.xml
new file mode 100644
index 00000000..0998bb36
--- /dev/null
+++ b/tests/REC/stand-2.7-1.xml
@@ -0,0 +1,23 @@
+<?xml-stylesheet type="text/xml" href="#style1"?>
+<!DOCTYPE doc SYSTEM "stand-2.7-1.dtd">
+<doc>
+<head>
+<xsl:stylesheet id="style1"
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:import href="stand-2.7-1.xsl"/>
+<xsl:template match="id('foo')">
+ <fo:block font-weight="bold"><xsl:apply-templates/></fo:block>
+</xsl:template>
+<xsl:template match="xsl:stylesheet">
+ <!-- ignore -->
+</xsl:template>
+</xsl:stylesheet>
+</head>
+<body>
+<para id="foo">
+...
+</para>
+</body>
+</doc>
diff --git a/tests/REC/stand-2.7-1.xsl b/tests/REC/stand-2.7-1.xsl
new file mode 100644
index 00000000..5a3726ee
--- /dev/null
+++ b/tests/REC/stand-2.7-1.xsl
@@ -0,0 +1,8 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:strip-space elements="*"/>
+<xsl:template match="/">
+<xsl:text>SUCCESS</xsl:text>
+<xsl:apply-templates/>
+</xsl:template>
+</xsl:stylesheet>
diff --git a/tests/docbook/result/xtchunk/html/apa.orig b/tests/docbook/result/xtchunk/html/apa.orig
index e1a1c772..d5cb0b8c 100644
--- a/tests/docbook/result/xtchunk/html/apa.orig
+++ b/tests/docbook/result/xtchunk/html/apa.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>A. Document Templates</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">A. Document Templates</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs15.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="apas17.html">Next</a>
+<a href="indexs15.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="apas17.html">Next</a>
</td>
</tr>
</table>
@@ -773,15 +773,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs15.html">Prev</a> </td>
+<a href="indexs15.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="apas17.html">Next</a>
+<td width="40%" align="right"><a href="apas17.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Resources </td>
+<td width="40%" align="left">Resources</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Template 2: Applet Manual For GNOME 1.x</td>
+<td width="40%" align="right">Template 2: Applet Manual For GNOME 1.x</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/apas17.orig b/tests/docbook/result/xtchunk/html/apas17.orig
index c4130342..a6f6e8f0 100644
--- a/tests/docbook/result/xtchunk/html/apas17.orig
+++ b/tests/docbook/result/xtchunk/html/apas17.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Template 2: Applet Manual For GNOME 1.x</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Template 2: Applet Manual For GNOME 1.x</th></tr>
<tr>
<td width="20%" align="left">
-<a href="apa.html">Prev</a> </td>
+<a href="apa.html">Prev</a></td>
<th width="60%" align="center">A. Document Templates</th>
-<td width="20%" align="right"> <a href="apas18.html">Next</a>
+<td width="20%" align="right"><a href="apas18.html">Next</a>
</td>
</tr>
</table>
@@ -355,15 +355,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="apa.html">Prev</a> </td>
+<a href="apa.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="apas18.html">Next</a>
+<td width="40%" align="right"><a href="apas18.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">A. Document Templates </td>
+<td width="40%" align="left">A. Document Templates</td>
<td width="20%" align="center"><a href="apa.html">Up</a></td>
-<td width="40%" align="right"> Template 2: Applet Manual For GNOME 2.x</td>
+<td width="40%" align="right">Template 2: Applet Manual For GNOME 2.x</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/apas18.orig b/tests/docbook/result/xtchunk/html/apas18.orig
index 425ce150..c899dc8b 100644
--- a/tests/docbook/result/xtchunk/html/apas18.orig
+++ b/tests/docbook/result/xtchunk/html/apas18.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Template 2: Applet Manual For GNOME 2.x</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -14,9 +14,9 @@
<tr><th colspan="3" align="center">Template 2: Applet Manual For GNOME 2.x</th></tr>
<tr>
<td width="20%" align="left">
-<a href="apas17.html">Prev</a> </td>
+<a href="apas17.html">Prev</a></td>
<th width="60%" align="center">A. Document Templates</th>
-<td width="20%" align="right"> </td>
+<td width="20%" align="right"></td>
</tr>
</table>
<hr>
@@ -657,14 +657,14 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="apas17.html">Prev</a> </td>
+<a href="apas17.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> </td>
+<td width="40%" align="right"></td>
</tr>
<tr>
-<td width="40%" align="left">Template 2: Applet Manual For GNOME 1.x </td>
+<td width="40%" align="left">Template 2: Applet Manual For GNOME 1.x</td>
<td width="20%" align="center"><a href="apa.html">Up</a></td>
-<td width="40%" align="right"> </td>
+<td width="40%" align="right"></td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/index.orig b/tests/docbook/result/xtchunk/html/index.orig
index a55cd8d8..b6706ab2 100644
--- a/tests/docbook/result/xtchunk/html/index.orig
+++ b/tests/docbook/result/xtchunk/html/index.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>The GNOME Handbook of Writing Software Documentation</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -12,9 +12,9 @@
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">The GNOME Handbook of Writing Software Documentation</th></tr>
<tr>
-<td width="20%" align="left"> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs02.html">Next</a>
+<td width="20%" align="left"></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs02.html">Next</a>
</td>
</tr>
</table>
@@ -29,24 +29,24 @@
<div class="affiliation">
<span class="orgname">Red Hat, Inc.<br></span><div class="address">
<br>
-            <tt>&lt;<a href="mailto:dcm@redhat.com">dcm@redhat.com</a>&gt;</tt><br>
-          </div>
+<tt>&lt;<a href="mailto:dcm@redhat.com">dcm@redhat.com</a>&gt;</tt><br>
+</div>
</div>
<h3 class="author">Daniel Mueth</h3>
<div class="affiliation"><div class="address">
<br>
-            <tt>&lt;<a href="mailto:d-mueth@uchicago.edu">d-mueth@uchicago.edu</a>&gt;</tt><br>
-          </div></div>
+<tt>&lt;<a href="mailto:d-mueth@uchicago.edu">d-mueth@uchicago.edu</a>&gt;</tt><br>
+</div></div>
<h3 class="author">Alexander Kirillov</h3>
<div class="affiliation"><div class="address">
<br>
-            <tt>&lt;<a href="mailto:kirillov@math.sunysb.edu">kirillov@math.sunysb.edu</a>&gt;</tt><br>
-          </div></div>
+<tt>&lt;<a href="mailto:kirillov@math.sunysb.edu">kirillov@math.sunysb.edu</a>&gt;</tt><br>
+</div></div>
</div>
<div><p class="releaseinfo">
This is a pre-release!
</p></div>
-<div><p class="copyright">Copyright © 2000 Red Hat, Inc., Daniel Mueth, and Alexander Kirillov</p></div>
+<div><p class="copyright">Copyright 2000 Red Hat, Inc., Daniel Mueth, and Alexander Kirillov</p></div>
<div><div class="legalnotice">
<p>
Permission is granted to copy, distribute and/or modify this
@@ -255,7 +255,7 @@
interested in joining the GDP team, you should join the
<a href="http://mail.gnome.org/mailman/listinfo/gnome-doc-list/" target="_top">
<i>gnome-doc-list mailing list</i> </a>.
- Read <a href="indexs02.html" title="Getting Started Writing GNOME Documentation">the section called “Getting Started Writing GNOME Documentation”</a>, for help selecting a
+ Read <a href="indexs02.html" title="Getting Started Writing GNOME Documentation">the section called &#x201C;Getting Started Writing GNOME Documentation&#x201D;</a>, for help selecting a
project to work on. Feel free to introduce yourself on the
gnome-doc-list mailing list and indicate which project you
intend to work on, or else ask for suggestions of important
@@ -293,8 +293,8 @@
<a name="notation"></a>Notation and Conventions</h3></div></div>
<p>
This Handbook uses the following notation:
- <div class="informaltable" id="id2781298">
-<a name="id2781298"></a><table border="0">
+ <div class="informaltable" id="id2782069">
+<a name="id2782069"></a><table border="0">
<colgroup>
<col>
<col>
@@ -357,15 +357,15 @@
<hr>
<table width="100%" summary="Navigation footer">
<tr>
-<td width="40%" align="left"> </td>
-<td width="20%" align="center"> </td>
-<td width="40%" align="right"> <a href="indexs02.html">Next</a>
+<td width="40%" align="left"></td>
+<td width="20%" align="center"></td>
+<td width="40%" align="right"><a href="indexs02.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left"> </td>
-<td width="20%" align="center"> </td>
-<td width="40%" align="right"> Getting Started Writing GNOME Documentation</td>
+<td width="40%" align="left"></td>
+<td width="20%" align="center"></td>
+<td width="40%" align="right">Getting Started Writing GNOME Documentation</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs02.orig b/tests/docbook/result/xtchunk/html/indexs02.orig
index 6ac23a38..abdd4496 100644
--- a/tests/docbook/result/xtchunk/html/indexs02.orig
+++ b/tests/docbook/result/xtchunk/html/indexs02.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Getting Started Writing GNOME Documentation</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Getting Started Writing GNOME Documentation</th></tr>
<tr>
<td width="20%" align="left">
-<a href="index.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs03.html">Next</a>
+<a href="index.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs03.html">Next</a>
</td>
</tr>
</table>
@@ -86,7 +86,7 @@
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2775470"></a>Note</h3>
+<a name="id2780402"></a>Note</h3>
<p>
Note that the information in the
<i>DocTable</i> may not always be up-to-date
@@ -109,7 +109,7 @@
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2775555"></a>NOTE</h3>
+<a name="id2780490"></a>NOTE</h3>
<p>
To get started writing for the GDP you do not need to rush
out and learn DocBook - if you feel it is too much to handle
@@ -176,7 +176,7 @@
</p>
<div class="itemizedlist"><ul>
<li style="list-style-type: opencircle"><p>
-<a name="id2775940"></a>
+<a name="id2780864"></a>
Download <a href="http://www.labs.redhat.com/png/png-support.html" target="_top">the
GDP DocBook DTD for PNG support</a> and install it
where you keep your DTD's. (On Red Hat use <tt>/usr/lib/sgml/</tt>.) Note that
@@ -185,7 +185,7 @@
recommended that you use version 3.1
</p></li>
<li style="list-style-type: disc"><p>
-<a name="id2776108"></a>
+<a name="id2781032"></a>
Add the new DTD to your SGML CATALOG file. The location
of your SGML CATALOG file may vary depending upon your
distribution. (On Red Hat it is usually in
@@ -244,7 +244,7 @@ V1.1//EN&quot;[]&gt;
and effort in adding and closing tags. You will find the
psgml package in DocBook Tools, which is the standard set of
tools for the GDP. You may find out more about DocBook Tools
- in <a href="indexs02.html#installingdocbook" title="Installing DocBook">the section called “Installing DocBook”</a>.
+ in <a href="indexs02.html#installingdocbook" title="Installing DocBook">the section called &#x201C;Installing DocBook&#x201D;</a>.
</p>
</div>
<div class="sect3">
@@ -284,14 +284,14 @@ V1.1//EN&quot;[]&gt;
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2776014"></a>NOTE</h3>
+<a name="id2780938"></a>NOTE</h3>
<p>
The html files you get will not look quite the same as the
documentation distributed with GNOME unless you have the
custom stylesheets installed on your machine. DocBook
Tools' default stylesheets will produce a different look
to your docs. You can read more about the GDP stylesheets
- in <a href="indexs02.html#gdpstylesheets" title="GDP Stylesheets">the section called “GDP Stylesheets”</a>.
+ in <a href="indexs02.html#gdpstylesheets" title="GDP Stylesheets">the section called &#x201C;GDP Stylesheets&#x201D;</a>.
</p>
</div>
</div>
@@ -355,7 +355,7 @@ V1.1//EN&quot;[]&gt;
</p>
<div class="itemizedlist"><ul>
<li style="list-style-type: disc"><p>
-<a name="id2898255"></a>
+<a name="id2903185"></a>
<a href="http://www.docbook.org" target="_top">http://www.docbook.org</a> - Norman
Walsh's <i>DocBook: The Definitive
Guide</i>. Online O'Reilly book on using
@@ -363,14 +363,14 @@ V1.1//EN&quot;[]&gt;
too formal for a beginner.
</p></li>
<li style="list-style-type: disc"><p>
-<a name="id2898311"></a>
+<a name="id2903240"></a>
<a href="http://www.oswg.org/oswg-nightly/oswg/en_US.ISO_8859-1/articles/DocBook-Intro/docbook-intro/index.html" target="_top">A Practical Introduction to DocBook</a>
- The Open Source Writers Group's introduction to using
DocBook. This is an excellent HOW-TO type article on
getting started.
</p></li>
<li style="list-style-type: disc"><p>
-<a name="id2898351"></a>
+<a name="id2903281"></a>
<a href="http://nis-www.lanl.gov/~rosalia/mydocs/docbook-intro/docbook-intro.html" target="_top">Getting Going with DocBook: Notes for
Hackers</a> - Mark Galassi's introduction to DocBook
for hackers. This has to be one of the first
@@ -378,7 +378,7 @@ V1.1//EN&quot;[]&gt;
was.
</p></li>
<li style="list-style-type: disc"><p>
-<a name="id2898391"></a>
+<a name="id2903320"></a>
<a href="http://www.freebsd.org/tutorials/docproj-primer/" target="_top">
FreeBSD Documentation Project Primer for New
Contributors</a> - FreeBSD documentation project
@@ -396,8 +396,8 @@ V1.1//EN&quot;[]&gt;
documentation authors write correct and consistent DocBook:
</p>
<div class="itemizedlist"><ul><li style="list-style-type: disc"><p>
-<a name="id2898457"></a>
- <a href="indexs04.html" title="DocBook Basics ">the section called “DocBook Basics ”</a> - Descriptions of
+<a name="id2903387"></a>
+ <a href="indexs04.html" title="DocBook Basics ">the section called &#x201C;DocBook Basics &#x201D;</a> - Descriptions of
commonly used DocBook tags.
</p></li></ul></div>
<p>
@@ -426,11 +426,11 @@ V1.1//EN&quot;[]&gt;
<p>
Most GNOME documents will have screenshots of the particular
applet, application, GNOME component, or widget being
- discussed. As discussed above in <a href="indexs02.html#gdpdtd" title="GDP DTD (PNG Image Support)">the section called “GDP DTD (PNG Image Support)”</a> you
+ discussed. As discussed above in <a href="indexs02.html#gdpdtd" title="GDP DTD (PNG Image Support)">the section called &#x201C;GDP DTD (PNG Image Support)&#x201D;</a> you
will need to install the special GDP DocBook DTD which
supports PNG images, the format used for all images in GNOME
documentation. For the basic DocBook structure used to insert
- images in a document, see <a href="indexs02.html#jadeimages" title="Images in DocBook Tools">the section called “Images in DocBook Tools”</a> above.
+ images in a document, see <a href="indexs02.html#jadeimages" title="Images in DocBook Tools">the section called &#x201C;Images in DocBook Tools&#x201D;</a> above.
</p>
<div class="sect3">
<a name="screenshotappearance"></a><div class="titlepage"><div><h4 class="title">
@@ -492,7 +492,7 @@ V1.1//EN&quot;[]&gt;
directory with your SGML file for applets, or should be
kept in a directory called &quot;figs&quot; for application and other
documentation. After you use <b>db2html</b> to
- convert your SGML file to HTML (see <a href="indexs02.html#make-output" title="Creating Something Useful with your Docs">the section called “Creating Something Useful with your Docs”</a>), you will need to copy your
+ convert your SGML file to HTML (see <a href="indexs02.html#make-output" title="Creating Something Useful with your Docs">the section called &#x201C;Creating Something Useful with your Docs&#x201D;</a>), you will need to copy your
screenshots (either the individual PNG files for applet
documentation, or the whole &quot;figs&quot; directory for other
documentation) into the newly created HTML directory. Note
@@ -500,7 +500,7 @@ V1.1//EN&quot;[]&gt;
directory is erased and rewritten, so do not store your only
copy of the screenshots in that directory. If you wish to
create PostScript or PDF output, you will need to manually
- convert the PNG images to EPS as described in <a href="indexs02.html#jadeimages" title="Images in DocBook Tools">the section called “Images in DocBook Tools”</a>, but will not need to copy these
+ convert the PNG images to EPS as described in <a href="indexs02.html#jadeimages" title="Images in DocBook Tools">the section called &#x201C;Images in DocBook Tools&#x201D;</a>, but will not need to copy these
images from their default location, as they are included
directly into the output(PostScript of PDF) file.
</p>
@@ -619,15 +619,15 @@ V1.1//EN&quot;[]&gt;
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="index.html">Prev</a> </td>
+<a href="index.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs03.html">Next</a>
+<td width="40%" align="right"><a href="indexs03.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">The GNOME Handbook of Writing Software Documentation </td>
+<td width="40%" align="left">The GNOME Handbook of Writing Software Documentation</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> The GNOME Documentation System</td>
+<td width="40%" align="right">The GNOME Documentation System</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs03.orig b/tests/docbook/result/xtchunk/html/indexs03.orig
index 33ce5b08..17f982b3 100644
--- a/tests/docbook/result/xtchunk/html/indexs03.orig
+++ b/tests/docbook/result/xtchunk/html/indexs03.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>The GNOME Documentation System</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">The GNOME Documentation System</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs02.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs04.html">Next</a>
+<a href="indexs02.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs04.html">Next</a>
</td>
</tr>
</table>
@@ -99,7 +99,7 @@
particular application which explains the various windows
and features of the application. Application Manuals
typically use screenshots (PNG format) for clarity. Writing
- application manuals is discussed in more detail in <a href="indexs06.html" title="Writing Application and Applet Manuals">the section called “Writing Application and Applet Manuals”</a> below.
+ application manuals is discussed in more detail in <a href="indexs06.html" title="Writing Application and Applet Manuals">the section called &#x201C;Writing Application and Applet Manuals&#x201D;</a> below.
</p>
</div>
<div class="sect3">
@@ -115,7 +115,7 @@
GNOME Help Browser. The help
browser should show either the first page of the application
manual, or else the relevant page thereof. Application help
- is described in more detail in <a href="indexs08.html" title="Application Help Buttons">the section called “Application Help Buttons”</a> below.
+ is described in more detail in <a href="indexs08.html" title="Application Help Buttons">the section called &#x201C;Application Help Buttons&#x201D;</a> below.
</p>
</div>
<div class="sect3">
@@ -129,7 +129,7 @@
clicking on an icon or by right clicking on the application
part and selecting &quot;What's This&quot; or whatever is decided on
at the time. Context sensitive help is described in more
- detail in <a href="indexs10.html" title="Writing Context Sensitive Help (coming in GNOME-2.0)">the section called “Writing Context Sensitive Help (coming in GNOME-2.0)”</a>
+ detail in <a href="indexs10.html" title="Writing Context Sensitive Help (coming in GNOME-2.0)">the section called &#x201C;Writing Context Sensitive Help (coming in GNOME-2.0)&#x201D;</a>
below.
</p>
</div>
@@ -191,15 +191,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs02.html">Prev</a> </td>
+<a href="indexs02.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs04.html">Next</a>
+<td width="40%" align="right"><a href="indexs04.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Getting Started Writing GNOME Documentation </td>
+<td width="40%" align="left">Getting Started Writing GNOME Documentation</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> DocBook Basics </td>
+<td width="40%" align="right">DocBook Basics </td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs04.orig b/tests/docbook/result/xtchunk/html/indexs04.orig
index 0b5dc6f5..f7b04873 100644
--- a/tests/docbook/result/xtchunk/html/indexs04.orig
+++ b/tests/docbook/result/xtchunk/html/indexs04.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>DocBook Basics </title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">DocBook Basics </th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs03.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs05.html">Next</a>
+<a href="indexs03.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs05.html">Next</a>
</td>
</tr>
</table>
@@ -52,7 +52,7 @@
readable format, you need special tools. The GDP uses <i>DocBook
Tools</i>, a free package of utilities for working with DocBook
which includes <i>Jade</i>, which does the SGML/DSSL
- parsing. You can read more about DocBook Tools in <a href="indexs02.html#installingdocbook" title="Installing DocBook">the section called “Installing DocBook”</a>.
+ parsing. You can read more about DocBook Tools in <a href="indexs02.html#installingdocbook" title="Installing DocBook">the section called &#x201C;Installing DocBook&#x201D;</a>.
</p>
<p>
The final appearance of the output (e.g. PostScript or HTML)
@@ -65,7 +65,7 @@
numbering style, and much more. DocBook tools come with a
collection of stylesheets (Norman Walsh's modular
stylesheets); GNOME Document Project uses some customized
- version of this stylesheets -- see <a href="indexs02.html#gdpstylesheets" title="GDP Stylesheets">the section called “GDP Stylesheets”</a>.
+ version of this stylesheets -- see <a href="indexs02.html#gdpstylesheets" title="GDP Stylesheets">the section called &#x201C;GDP Stylesheets&#x201D;</a>.
</p>
<p>
The advantage of specifying the <i>structure</i>
@@ -96,9 +96,9 @@
</p>
<p>
As stated before, the GDP uses the DocBook DTD. For a list of
- introductory and reference resources on DocBook, see <a href="indexs15.html" title="Resources">the section called “Resources”</a>. The following sections also provide
+ introductory and reference resources on DocBook, see <a href="indexs15.html" title="Resources">the section called &#x201C;Resources&#x201D;</a>. The following sections also provide
convenient instructions on which markup tags to use in various
- circumstances. Be sure to read <a href="indexs05.html" title="GDP Documentation Conventions ">the section called “GDP Documentation Conventions ”</a>
+ circumstances. Be sure to read <a href="indexs05.html" title="GDP Documentation Conventions ">the section called &#x201C;GDP Documentation Conventions &#x201D;</a>
for GDP documentation-specific guidelines.
</p>
</div>
@@ -117,10 +117,10 @@
</p>
<div class="variablelist"><dl>
<dt>
-<a name="id2900749"></a><span class="term"> <i>Minimization</i></span>
+<a name="id2905678"></a><span class="term"> <i>Minimization</i></span>
</dt>
<dd><p>
-<a name="id2900768"></a>
+<a name="id2905697"></a>
It is possible with some implementations of SGML to use
minimizations to close elements in a document by using
&lt;/&gt;, for example:
@@ -133,10 +133,10 @@
Modify-&gt;Normalize.
</p></dd>
<dt>
-<a name="id2900851"></a><span class="term"> <i>Self-closing tags</i></span>
+<a name="id2905780"></a><span class="term"> <i>Self-closing tags</i></span>
</dt>
<dd><p>
-<a name="id2900870"></a>
+<a name="id2905799"></a>
Also, in SGML some tags are allowed not to have closing
tags. For example, it is legal for
<tt>&lt;xref&gt;</tt> not to have a closing tag:
@@ -148,10 +148,10 @@
slash!).
</p></dd>
<dt>
-<a name="id2900923"></a><span class="term"> <i>Case sensitive tags</i></span>
+<a name="id2905852"></a><span class="term"> <i>Case sensitive tags</i></span>
</dt>
<dd><p>
-<a name="id2900943"></a>
+<a name="id2905872"></a>
In XML, unlike SGML, tags are case-senstive
<tt>&lt;title&gt;</tt> and
<tt>&lt;TITLE&gt;</tt> are different tags!
@@ -252,11 +252,11 @@
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2901414"></a>NOTE</h3>
+<a name="id2906340"></a>NOTE</h3>
<p>
Notice in this example that the screenshot file name does
not include the file type extension -- to find out
- why, please read <a href="indexs02.html#jadeimages" title="Images in DocBook Tools">the section called “Images in DocBook Tools”</a>.
+ why, please read <a href="indexs02.html#jadeimages" title="Images in DocBook Tools">the section called &#x201C;Images in DocBook Tools&#x201D;</a>.
</p>
</div>
</div>
@@ -310,7 +310,7 @@ make: *** No rule to make target `love'. Stop.
and commands entered by user.
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2901627"></a>NOTE</h3>
+<a name="id2906548"></a>NOTE</h3>
<p>
Note that both <tt>&lt;programlisting&gt;</tt>
and <tt>&lt;screen&gt;</tt> preserve linebreaks,
@@ -333,11 +333,11 @@ make: *** No rule to make target `love'. Stop.
</p>
<div class="variablelist"><dl>
<dt>
-<a name="id2901746"></a><span class="term"> <tt>&lt;itemizedlist&gt;</tt></span>
+<a name="id2906667"></a><span class="term"> <tt>&lt;itemizedlist&gt;</tt></span>
</dt>
<dd>
<p>
-<a name="id2901765"></a>
+<a name="id2906687"></a>
This is the simplest unnumbered list, parallel to
<tt>&lt;ul&gt;</tt> in HTML. Here is an example:
<pre class="programlisting">
@@ -371,20 +371,20 @@ make: *** No rule to make target `love'. Stop.
</p>
<div class="itemizedlist"><ul>
<li><p>
-<a name="id2901783"></a>
+<a name="id2906722"></a>
Show backup files --
This will show any backup file that might be on
your system.
</p></li>
<li><p>
-<a name="id2901846"></a>
+<a name="id2906776"></a>
Show hidden files --
This will show all &quot;dot files&quot; or files that
begin with a dot. This files typically include
configuration files and directories.
</p></li>
<li><p>
-<a name="id2901873"></a>
+<a name="id2906803"></a>
Mix files and directories
-- This option will display files and
directories in the order you sort them instead
@@ -392,7 +392,7 @@ make: *** No rule to make target `love'. Stop.
</p></li>
</ul></div>
<p> Note the use of <tt>&amp;mdash;</tt>
- for long dash (see <a href="indexs04.html#specsymb" title=" Special symbols ">the section called “ Special symbols ”</a>). Also,
+ for long dash (see <a href="indexs04.html#specsymb" title=" Special symbols ">the section called &#x201C; Special symbols &#x201D;</a>). Also,
please note that the result looks much nicer because the
terms being explained (Show backup
files, etc.) are set in a different font. In
@@ -407,10 +407,10 @@ make: *** No rule to make target `love'. Stop.
</p>
</dd>
<dt>
-<a name="id2902039"></a><span class="term"> <tt>&lt;orderedlist&gt;</tt></span>
+<a name="id2906969"></a><span class="term"> <tt>&lt;orderedlist&gt;</tt></span>
</dt>
<dd><p>
-<a name="id2902057"></a>
+<a name="id2906987"></a>
This list is completely analogous to
<tt>&lt;itemizedlist&gt;</tt> and has the same
syntax, but it produces numbered list. By default,
@@ -425,10 +425,10 @@ make: *** No rule to make target `love'. Stop.
<tt>lowerroman</tt>.
</p></dd>
<dt>
-<a name="id2902137"></a><span class="term"> <tt>&lt;variablelist&gt;</tt></span>
+<a name="id2907067"></a><span class="term"> <tt>&lt;variablelist&gt;</tt></span>
</dt>
<dd><p>
-<a name="id2902157"></a> This list is used when each entry is
+<a name="id2907087"></a> This list is used when each entry is
rather long, so it should be formatted as a block of text
with some subtitle, like a small subsection. The
<tt>&lt;variablelist&gt;</tt> is more complicated
@@ -482,12 +482,12 @@ make: *** No rule to make target `love'. Stop.
<a name="gui"></a>GUI elements</h4></div></div>
<div class="itemizedlist"><ul>
<li><p>
-<a name="id2902315"></a>
+<a name="id2907253"></a>
<tt>&lt;guibutton&gt;</tt> -- used for
buttons, including checkbuttons and radio buttons
</p></li>
<li><p>
-<a name="id2902340"></a>
+<a name="id2907279"></a>
<tt>&lt;guimenu&gt;</tt>,
<tt>&lt;guisubmenu&gt;</tt> --used for
top-level menus and submenus
@@ -496,21 +496,21 @@ make: *** No rule to make target `love'. Stop.
&lt;guimenu&gt;Main Menu&lt;/guimenu&gt;</tt>
</p></li>
<li><p>
-<a name="id2902384"></a>
+<a name="id2907323"></a>
<tt>&lt;guimenuitem&gt;</tt>--an entry in a
menu
</p></li>
<li><p>
-<a name="id2902410"></a>
+<a name="id2907349"></a>
<tt>&lt;guiicon&gt;</tt>--an icon
</p></li>
<li><p>
-<a name="id2902434"></a>
+<a name="id2907373"></a>
<tt>&lt;guilabel&gt;</tt>--for items which have
labels, like tabs, or bounding boxes.
</p></li>
<li><p>
-<a name="id2902459"></a>
+<a name="id2907398"></a>
<tt>&lt;interface&gt;</tt>-- for most everything
else... a window, a dialog box, the Panel, etc.
</p></li>
@@ -542,11 +542,11 @@ make: *** No rule to make target `love'. Stop.
An example of a &lt;link linkend=&quot;extip&quot;&gt;tip&lt;/link&gt; was given in
&lt;xref linkend=&quot;notes&quot; /&gt;.
</pre>
- which produces: An example of a <a href="indexs04.html#extip">tip</a> was given in <a href="indexs04.html#notes" title="Notes, Warnings, And Tips">the section called “Notes, Warnings, And Tips”</a>.
+ which produces: An example of a <a href="indexs04.html#extip">tip</a> was given in <a href="indexs04.html#notes" title="Notes, Warnings, And Tips">the section called &#x201C;Notes, Warnings, And Tips&#x201D;</a>.
</p>
<p>
Here <tt>notes</tt> and <tt>extip</tt>
- are the id attributes of <a href="indexs04.html#notes" title="Notes, Warnings, And Tips">the section called “Notes, Warnings, And Tips”</a> and of the
+ are the id attributes of <a href="indexs04.html#notes" title="Notes, Warnings, And Tips">the section called &#x201C;Notes, Warnings, And Tips&#x201D;</a> and of the
example of a tip in it.
</p>
<p> To produce a link to an external source, such as a
@@ -575,7 +575,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
</p>
<div class="itemizedlist"><ul>
<li><p>
-<a name="id2902816"></a> <tt>&lt;filename&gt;</tt> -- used
+<a name="id2907747"></a> <tt>&lt;filename&gt;</tt> -- used
for filenames,
e.g.<tt>&lt;filename&gt;</tt>
foo.sgml
@@ -583,7 +583,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
produces: <tt>foo.sgml</tt>.
</p></li>
<li><p>
-<a name="id2902866"></a> <tt>&lt;filename
+<a name="id2907796"></a> <tt>&lt;filename
class=&quot;directory&quot;&gt;</tt> -- used for
directories, e.g.<tt>&lt;filename
class=&quot;directory&quot;&gt;</tt>/usr/bin
@@ -591,7 +591,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
produces: <tt>/usr/bin</tt>.
</p></li>
<li><p>
-<a name="id2902922"></a>
+<a name="id2907853"></a>
<tt>&lt;application&gt;</tt> -- used for
application names,
e.g. <tt>&lt;application&gt;</tt>Gnumeric
@@ -599,13 +599,13 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
Gnumeric.
</p></li>
<li><p>
-<a name="id2902972"></a>
+<a name="id2907903"></a>
<tt>&lt;envar&gt;</tt> -- used for
environment variables, e.g.
<tt>&lt;envar&gt;</tt>PATH<tt>&lt;/envar&gt;</tt>.
</p></li>
<li><p>
-<a name="id2903013"></a>
+<a name="id2907944"></a>
<tt>&lt;command&gt;</tt> -- used for
commands entered on command line, e.g.
<tt>&lt;command&gt;</tt>make install
@@ -613,7 +613,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
<b>make install</b>.
</p></li>
<li><p>
-<a name="id2903063"></a>
+<a name="id2907993"></a>
<tt>&lt;replaceable&gt;</tt> -- used for
replaceable text, e.g.
<tt>&lt;command&gt;</tt>db2html<tt>&lt;replaceable&gt;</tt>
@@ -637,9 +637,9 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
other tags for keys, too: <tt>&lt;keysym&gt;</tt>
and <tt>&lt;keycode&gt;</tt>. However you are
unlikely to need these for most documentation. For reference,
- <tt>&lt;keysym&gt;</tt> is for the ‘symbolic
- name’ of a key. <tt>&lt;keycode&gt;</tt> is
- for the ‘scan code’ of a key. These are not
+ <tt>&lt;keysym&gt;</tt> is for the &#x2018;symbolic
+ name&#x2019; of a key. <tt>&lt;keycode&gt;</tt> is
+ for the &#x2018;scan code&#x2019; of a key. These are not
terms commonly required in GNOME documentation,
although <tt>&lt;keysym&gt;</tt> is useful for marking
up control codes.
@@ -704,23 +704,23 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
</p>
<div class="itemizedlist"><ul>
<li><p>
-<a name="id2903502"></a>
+<a name="id2908425"></a>
<tt>&amp;amp;</tt> -- ampersend (&amp;)
</p></li>
<li><p>
-<a name="id2903521"></a>
+<a name="id2908444"></a>
<tt>&amp;lt;</tt> -- left angle bracket (&lt;)
</p></li>
<li><p>
-<a name="id2903540"></a>
- <tt>&amp;copy;</tt> -- copyright sign (©)
+<a name="id2908463"></a>
+ <tt>&amp;copy;</tt> -- copyright sign ()
</p></li>
<li><p>
-<a name="id2903559"></a>
+<a name="id2908482"></a>
<tt>&amp;mdash;</tt> -- long dash (--)
</p></li>
<li><p>
-<a name="id2903578"></a>
+<a name="id2908501"></a>
<tt>&amp;hellip;</tt> -- ellipsis (...)
</p></li>
</ul></div>
@@ -740,15 +740,15 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs03.html">Prev</a> </td>
+<a href="indexs03.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs05.html">Next</a>
+<td width="40%" align="right"><a href="indexs05.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">The GNOME Documentation System </td>
+<td width="40%" align="left">The GNOME Documentation System</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> GDP Documentation Conventions </td>
+<td width="40%" align="right">GDP Documentation Conventions </td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs05.orig b/tests/docbook/result/xtchunk/html/indexs05.orig
index 424c7d3f..28a91486 100644
--- a/tests/docbook/result/xtchunk/html/indexs05.orig
+++ b/tests/docbook/result/xtchunk/html/indexs05.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>GDP Documentation Conventions </title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">GDP Documentation Conventions </th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs04.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs06.html">Next</a>
+<a href="indexs04.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs06.html">Next</a>
</td>
</tr>
</table>
@@ -35,7 +35,7 @@
<p>
All GNOME documentation should conform to XML syntax
requirements, which are stricter than SGML ones -- see
- <a href="indexs04.html#xml" title="XML and SGML">the section called “XML and SGML”</a> for more informaion.
+ <a href="indexs04.html#xml" title="XML and SGML">the section called &#x201C;XML and SGML&#x201D;</a> for more informaion.
</p>
</div>
<div class="sect3">
@@ -108,15 +108,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs04.html">Prev</a> </td>
+<a href="indexs04.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs06.html">Next</a>
+<td width="40%" align="right"><a href="indexs06.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">DocBook Basics  </td>
+<td width="40%" align="left">DocBook Basics </td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Writing Application and Applet Manuals</td>
+<td width="40%" align="right">Writing Application and Applet Manuals</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs06.orig b/tests/docbook/result/xtchunk/html/indexs06.orig
index 5346d82e..abbf18fe 100644
--- a/tests/docbook/result/xtchunk/html/indexs06.orig
+++ b/tests/docbook/result/xtchunk/html/indexs06.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Writing Application and Applet Manuals</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Writing Application and Applet Manuals</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs05.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs07.html">Next</a>
+<a href="indexs05.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs07.html">Next</a>
</td>
</tr>
</table>
@@ -37,7 +37,7 @@
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904036"></a>Documentation Availability</h3>
+<a name="id2908956"></a>Documentation Availability</h3>
<p>
Applications and applets should not rely on documentation
which is only available on the internet. All manuals and
@@ -47,14 +47,14 @@
</p>
</div>
<p> Application manuals should be based on the template in
- <a href="apa.html#template1" title="Template 1: Application Manual">the section called “Template 1: Application Manual”</a>. Applet manuals should be based on
- the templates in <a href="apas17.html" title="Template 2: Applet Manual For GNOME 1.x">the section called “Template 2: Applet Manual For GNOME 1.x”</a> for GNOME
- versions 1.x and the templates in <a href="apas18.html" title="Template 2: Applet Manual For GNOME 2.x">the section called “Template 2: Applet Manual For GNOME 2.x”</a>
+ <a href="apa.html#template1" title="Template 1: Application Manual">the section called &#x201C;Template 1: Application Manual&#x201D;</a>. Applet manuals should be based on
+ the templates in <a href="apas17.html" title="Template 2: Applet Manual For GNOME 1.x">the section called &#x201C;Template 2: Applet Manual For GNOME 1.x&#x201D;</a> for GNOME
+ versions 1.x and the templates in <a href="apas18.html" title="Template 2: Applet Manual For GNOME 2.x">the section called &#x201C;Template 2: Applet Manual For GNOME 2.x&#x201D;</a>
for GNOME versions 2.x.
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904076"></a>Manuals For Large Applications</h3>
+<a name="id2908997"></a>Manuals For Large Applications</h3>
<p>
Manuals for very large applications, such as GNOME Workshop
components should be a <tt>&lt;book&gt;</tt> (and thus
@@ -66,7 +66,7 @@
</div>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904192"></a>Applet Manuals in GNOME 2.0</h3>
+<a name="id2909112"></a>Applet Manuals in GNOME 2.0</h3>
<p>
Note that applet manuals in GNOME 2.0 are treated in a special
way. The manuals for all applets are merged into a single
@@ -82,7 +82,7 @@
Application manuals should be made available by having a
&quot;Manual&quot; entry in the Help pull-down menu
at the top of the
- application, as described in <a href="indexs07.html" title="Listing Documents in the Help Menu">the section called “Listing Documents in the Help Menu”</a>.
+ application, as described in <a href="indexs07.html" title="Listing Documents in the Help Menu">the section called &#x201C;Listing Documents in the Help Menu&#x201D;</a>.
Applets should make their manuals available by
right-clicking on the applet.
</p>
@@ -92,15 +92,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs05.html">Prev</a> </td>
+<a href="indexs05.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs07.html">Next</a>
+<td width="40%" align="right"><a href="indexs07.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">GDP Documentation Conventions  </td>
+<td width="40%" align="left">GDP Documentation Conventions </td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Listing Documents in the Help Menu</td>
+<td width="40%" align="right">Listing Documents in the Help Menu</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs07.orig b/tests/docbook/result/xtchunk/html/indexs07.orig
index 2316b48c..0a28224b 100644
--- a/tests/docbook/result/xtchunk/html/indexs07.orig
+++ b/tests/docbook/result/xtchunk/html/indexs07.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Listing Documents in the Help Menu</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Listing Documents in the Help Menu</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs06.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs08.html">Next</a>
+<a href="indexs06.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs08.html">Next</a>
</td>
</tr>
</table>
@@ -28,7 +28,7 @@
<a name="listingdocsinhelpmenu"></a>Listing Documents in the Help Menu</h2></div></div>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904310"></a>Developer Information</h3>
+<a name="id2909230"></a>Developer Information</h3>
<p>
This section is for developers. Documentation authors
generally do not need to know this material.
@@ -66,7 +66,7 @@ function-reference.html Gnumeric function reference
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904453"></a>Note</h3>
+<a name="id2909374"></a>Note</h3>
<p>
If the help files are not present in the correct directory, the
menu items will NOT appear when the program is run.
@@ -102,15 +102,15 @@ GnomeUIInfo helpmenu[] = {
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs06.html">Prev</a> </td>
+<a href="indexs06.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs08.html">Next</a>
+<td width="40%" align="right"><a href="indexs08.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Writing Application and Applet Manuals </td>
+<td width="40%" align="left">Writing Application and Applet Manuals</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Application Help Buttons</td>
+<td width="40%" align="right">Application Help Buttons</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs08.orig b/tests/docbook/result/xtchunk/html/indexs08.orig
index ee86b07c..912d2bcf 100644
--- a/tests/docbook/result/xtchunk/html/indexs08.orig
+++ b/tests/docbook/result/xtchunk/html/indexs08.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Application Help Buttons</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Application Help Buttons</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs07.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs09.html">Next</a>
+<a href="indexs07.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs09.html">Next</a>
</td>
</tr>
</table>
@@ -28,7 +28,7 @@
<a name="applicationhelpbuttons"></a>Application Help Buttons</h2></div></div>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904591"></a>Developer Information</h3>
+<a name="id2909511"></a>Developer Information</h3>
<p>
This section is for developers. Documentation authors
generally do not need to know this material.
@@ -61,7 +61,7 @@ if (tmp) {
</pre>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904697"></a>NOTE</h3>
+<a name="id2909617"></a>NOTE</h3>
<p>
The example above is in the C language, please refer to other
documentation or forums for other GNOME language bindings.
@@ -73,15 +73,15 @@ if (tmp) {
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs07.html">Prev</a> </td>
+<a href="indexs07.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs09.html">Next</a>
+<td width="40%" align="right"><a href="indexs09.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Listing Documents in the Help Menu </td>
+<td width="40%" align="left">Listing Documents in the Help Menu</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Packaging Applet Documentation</td>
+<td width="40%" align="right">Packaging Applet Documentation</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs09.orig b/tests/docbook/result/xtchunk/html/indexs09.orig
index 3407f17f..e3e87557 100644
--- a/tests/docbook/result/xtchunk/html/indexs09.orig
+++ b/tests/docbook/result/xtchunk/html/indexs09.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Packaging Applet Documentation</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Packaging Applet Documentation</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs08.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs10.html">Next</a>
+<a href="indexs08.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs10.html">Next</a>
</td>
</tr>
</table>
@@ -72,7 +72,7 @@
<a name="appletmenu"></a>Adding Documentation to an Applet Menu</h3></div></div>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">
-<a name="id2904938"></a>Developer Information</h3>
+<a name="id2909858"></a>Developer Information</h3>
<p>
This section is for developers. Documentation authors
generally do not need to know this material.
@@ -101,7 +101,7 @@ _(&quot;Manual&quot;), &amp;open_manual, NULL);
You will need to write a simple callback function to open the
help browser to the appropriate document. This is done using
the <tt>gnome_help_file_find_file</tt> function,
- as described in <a href="indexs08.html" title="Application Help Buttons">the section called “Application Help Buttons”</a>.
+ as described in <a href="indexs08.html" title="Application Help Buttons">the section called &#x201C;Application Help Buttons&#x201D;</a>.
</p>
<p>
You will also want to add an About menu
@@ -124,15 +124,15 @@ applet_widget_register_stock_callback (APPLET_WIDGET(applet), &quot;about&quot;,
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs08.html">Prev</a> </td>
+<a href="indexs08.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs10.html">Next</a>
+<td width="40%" align="right"><a href="indexs10.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Application Help Buttons </td>
+<td width="40%" align="left">Application Help Buttons</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Writing Context Sensitive Help (coming in GNOME-2.0)</td>
+<td width="40%" align="right">Writing Context Sensitive Help (coming in GNOME-2.0)</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs10.orig b/tests/docbook/result/xtchunk/html/indexs10.orig
index 9a5ce56a..c849caec 100644
--- a/tests/docbook/result/xtchunk/html/indexs10.orig
+++ b/tests/docbook/result/xtchunk/html/indexs10.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Writing Context Sensitive Help (coming in GNOME-2.0)</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -16,9 +16,9 @@
<tr><th colspan="3" align="center">Writing Context Sensitive Help (coming in GNOME-2.0)</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs09.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs11.html">Next</a>
+<a href="indexs09.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs11.html">Next</a>
</td>
</tr>
</table>
@@ -67,15 +67,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs09.html">Prev</a> </td>
+<a href="indexs09.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs11.html">Next</a>
+<td width="40%" align="right"><a href="indexs11.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Packaging Applet Documentation </td>
+<td width="40%" align="left">Packaging Applet Documentation</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Referring to Other GNOME Documentation (coming in
+<td width="40%" align="right">Referring to Other GNOME Documentation (coming in
GNOME-2.0)</td>
</tr>
</table>
diff --git a/tests/docbook/result/xtchunk/html/indexs11.orig b/tests/docbook/result/xtchunk/html/indexs11.orig
index 2d0cb850..13cc7a29 100644
--- a/tests/docbook/result/xtchunk/html/indexs11.orig
+++ b/tests/docbook/result/xtchunk/html/indexs11.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Referring to Other GNOME Documentation (coming in
GNOME-2.0)</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
@@ -17,9 +17,9 @@
GNOME-2.0)</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs10.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs12.html">Next</a>
+<a href="indexs10.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs12.html">Next</a>
</td>
</tr>
</table>
@@ -40,15 +40,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs10.html">Prev</a> </td>
+<a href="indexs10.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs12.html">Next</a>
+<td width="40%" align="right"><a href="indexs12.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Writing Context Sensitive Help (coming in GNOME-2.0) </td>
+<td width="40%" align="left">Writing Context Sensitive Help (coming in GNOME-2.0)</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Basics of Documentation Style</td>
+<td width="40%" align="right">Basics of Documentation Style</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs12.orig b/tests/docbook/result/xtchunk/html/indexs12.orig
index b50035bd..8cfe9ca0 100644
--- a/tests/docbook/result/xtchunk/html/indexs12.orig
+++ b/tests/docbook/result/xtchunk/html/indexs12.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Basics of Documentation Style</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -16,9 +16,9 @@
<tr><th colspan="3" align="center">Basics of Documentation Style</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs11.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs13.html">Next</a>
+<a href="indexs11.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs13.html">Next</a>
</td>
</tr>
</table>
@@ -73,7 +73,7 @@
you'll have to juggle a number of other extremes as you write:
<div class="itemizedlist"><ul>
<li><p>
-<a name="id2905458"></a>
+<a name="id2910378"></a>
Documents should be complete, yet concise. You should
describe every feature, but you'll have decide how much
detail is really necessary. It's not, for example,
@@ -85,7 +85,7 @@
items that are more complex.
</p></li>
<li><p>
-<a name="id2905486"></a>
+<a name="id2910406"></a>
Be engaging and friendly, yet professional. Games
documents may be less formal than productivity
application documents (people don't
@@ -96,7 +96,7 @@
allusions or puns.
</p></li>
<li><p>
-<a name="id2905525"></a>
+<a name="id2910445"></a>
Examples, tips, notes, and screenshots are useful to
break up long stretches of text, but too many can get in
the way, and make your documents too choppy to read.
@@ -105,7 +105,7 @@
tabs, it's not usually necessary to have one for each.
</p></li>
<li><p>
-<a name="id2905549"></a>
+<a name="id2910469"></a>
The GDP strives to have all of its documentation conform
to certain standards of style and content, but every
document (and every writer) is different. You will need
@@ -183,16 +183,16 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs11.html">Prev</a> </td>
+<a href="indexs11.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs13.html">Next</a>
+<td width="40%" align="right"><a href="indexs13.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left">Referring to Other GNOME Documentation (coming in
- GNOME-2.0) </td>
+ GNOME-2.0)</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Teamwork</td>
+<td width="40%" align="right">Teamwork</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs13.orig b/tests/docbook/result/xtchunk/html/indexs13.orig
index f17784ea..51993f2c 100644
--- a/tests/docbook/result/xtchunk/html/indexs13.orig
+++ b/tests/docbook/result/xtchunk/html/indexs13.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Teamwork</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Teamwork</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs12.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs14.html">Next</a>
+<a href="indexs12.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs14.html">Next</a>
</td>
</tr>
</table>
@@ -74,15 +74,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs12.html">Prev</a> </td>
+<a href="indexs12.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs14.html">Next</a>
+<td width="40%" align="right"><a href="indexs14.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Basics of Documentation Style </td>
+<td width="40%" align="left">Basics of Documentation Style</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Finishing A Document</td>
+<td width="40%" align="right">Finishing A Document</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs14.orig b/tests/docbook/result/xtchunk/html/indexs14.orig
index 4332d0d3..7c6e6d62 100644
--- a/tests/docbook/result/xtchunk/html/indexs14.orig
+++ b/tests/docbook/result/xtchunk/html/indexs14.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Finishing A Document</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Finishing A Document</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs13.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="indexs15.html">Next</a>
+<a href="indexs13.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="indexs15.html">Next</a>
</td>
</tr>
</table>
@@ -65,15 +65,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs13.html">Prev</a> </td>
+<a href="indexs13.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="indexs15.html">Next</a>
+<td width="40%" align="right"><a href="indexs15.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Teamwork </td>
+<td width="40%" align="left">Teamwork</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> Resources</td>
+<td width="40%" align="right">Resources</td>
</tr>
</table>
</div>
diff --git a/tests/docbook/result/xtchunk/html/indexs15.orig b/tests/docbook/result/xtchunk/html/indexs15.orig
index 4be0f2cd..c6c72d95 100644
--- a/tests/docbook/result/xtchunk/html/indexs15.orig
+++ b/tests/docbook/result/xtchunk/html/indexs15.orig
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<title>Resources</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.40">
<link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
@@ -15,9 +15,9 @@
<tr><th colspan="3" align="center">Resources</th></tr>
<tr>
<td width="20%" align="left">
-<a href="indexs14.html">Prev</a> </td>
-<th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="apa.html">Next</a>
+<a href="indexs14.html">Prev</a></td>
+<th width="60%" align="center"></th>
+<td width="20%" align="right"><a href="apa.html">Next</a>
</td>
</tr>
</table>
@@ -82,15 +82,15 @@
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
-<a href="indexs14.html">Prev</a> </td>
+<a href="indexs14.html">Prev</a></td>
<td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="apa.html">Next</a>
+<td width="40%" align="right"><a href="apa.html">Next</a>
</td>
</tr>
<tr>
-<td width="40%" align="left">Finishing A Document </td>
+<td width="40%" align="left">Finishing A Document</td>
<td width="20%" align="center"><a href="index.html">Up</a></td>
-<td width="40%" align="right"> A. Document Templates</td>
+<td width="40%" align="right">A. Document Templates</td>
</tr>
</table>
</div>