From 051acce4edb342a6a1623e9dca1ec9d4f1cdb01e Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Mon, 9 Oct 2006 07:35:16 +0000 Subject: [PATCH] Terminate with message if processing DB5 and cannot strip the namespace. --- xsl/fo/docbook.xsl | 33 +++++---- xsl/html/chunk-code.xsl | 151 +++++++++++++++++++++------------------- xsl/html/docbook.xsl | 133 ++++++++++++++++++----------------- 3 files changed, 169 insertions(+), 148 deletions(-) diff --git a/xsl/fo/docbook.xsl b/xsl/fo/docbook.xsl index c6d094d98..217f1e71c 100644 --- a/xsl/fo/docbook.xsl +++ b/xsl/fo/docbook.xsl @@ -2,8 +2,8 @@ @@ -123,16 +123,23 @@ 'Apache Software Foundation')) and (*/self::ng:* or */self::db:*)"> + toss the namespace and continue. Someday we'll reverse this logic + and add the namespace to documents that don't have one. + But not before the whole stylesheet has been converted to use + namespaces. i.e., don't hold your breath --> Stripping namespace from DocBook 5 document. + + + + Unable to strip the namespace from DB5 document, + cannot proceed. + + @@ -243,12 +250,12 @@ + mode="fop1.outline"/> - + @@ -265,13 +272,13 @@ - + - - - + + + diff --git a/xsl/html/chunk-code.xsl b/xsl/html/chunk-code.xsl index 6134d4e4d..28f416cad 100644 --- a/xsl/html/chunk-code.xsl +++ b/xsl/html/chunk-code.xsl @@ -1,8 +1,8 @@ @@ -248,7 +248,7 @@ |preceding::bibliography[parent::article or parent::book or parent::part][1] |preceding::glossary[parent::article or parent::book or parent::part][1] |preceding::index[$generate.index != 0] - [parent::article or parent::book or parent::part][1] + [parent::article or parent::book or parent::part][1] |preceding::setindex[$generate.index != 0][1] |ancestor::set |ancestor::book[1] @@ -333,7 +333,7 @@ |following::bibliography[parent::article or parent::book or parent::part][1] |following::glossary[parent::article or parent::book or parent::part][1] |following::index[$generate.index != 0] - [parent::article or parent::book or parent::part][1] + [parent::article or parent::book or parent::part][1] |following::article[1] |following::setindex[$generate.index != 0][1] |descendant::book[1] @@ -344,7 +344,7 @@ |descendant::bibliography[parent::article or parent::book or parent::part][1] |descendant::glossary[parent::article or parent::book or parent::part][1] |descendant::index[$generate.index != 0] - [parent::article or parent::book or parent::part][1] + [parent::article or parent::book or parent::part][1] |descendant::colophon[1] |descendant::setindex[$generate.index != 0][1] |descendant::part[1] @@ -394,7 +394,7 @@ |preceding::bibliography[parent::article or parent::book or parent::part][1] |preceding::glossary[parent::article or parent::book or parent::part][1] |preceding::index[$generate.index != 0] - [parent::article or parent::book or parent::part][1] + [parent::article or parent::book or parent::part][1] |preceding::setindex[$generate.index != 0][1] |ancestor::set |ancestor::book[1] @@ -436,7 +436,7 @@ |following::bibliography[parent::article or parent::book or parent::part][1] |following::glossary[parent::article or parent::book or parent::part][1] |following::index[$generate.index != 0] - [parent::article or parent::book][1] + [parent::article or parent::book][1] |following::article[1] |following::setindex[$generate.index != 0][1] |descendant::book[1] @@ -447,7 +447,7 @@ |descendant::bibliography[parent::article or parent::book][1] |descendant::glossary[parent::article or parent::book or parent::part][1] |descendant::index[$generate.index != 0] - [parent::article or parent::book][1] + [parent::article or parent::book][1] |descendant::colophon[1] |descendant::setindex[$generate.index != 0][1] |descendant::part[1] @@ -473,67 +473,74 @@ 'Apache Software Foundation')) and (*/self::ng:* or */self::db:*)"> + toss the namespace and continue. Someday we'll reverse this logic + and add the namespace to documents that don't have one. + But not before the whole stylesheet has been converted to use + namespaces. i.e., don't hold your breath --> Stripping namespace from DocBook 5 document. - + Processing stripped document. + + + + Unable to strip the namespace from DB5 document, + cannot proceed. + + - - - - - ID ' - - ' not found in document. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + ID ' + + ' not found in document. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -736,11 +743,11 @@ - -

- -

-
+ +

+ +

+
@@ -994,18 +1001,18 @@ + does any harm to reference them all, but it adds + unnecessary bloat to each chunk. -->
-

The following annotations are from this essay. You are seeing - them here because your browser doesn’t support the user-interface - techniques used to make them appear as ‘popups’ on modern browsers.

+

The following annotations are from this essay. You are seeing + them here because your browser doesn’t support the user-interface + techniques used to make them appear as ‘popups’ on modern browsers.

+ mode="annotation-popup"/>
diff --git a/xsl/html/docbook.xsl b/xsl/html/docbook.xsl index de85f17dc..e0f9bd4a9 100644 --- a/xsl/html/docbook.xsl +++ b/xsl/html/docbook.xsl @@ -1,7 +1,7 @@ @@ -266,24 +266,24 @@ body { background-image: url(' + does any harm to reference them all, but it adds + unnecessary bloat to each chunk. --> @@ -333,67 +333,74 @@ body { background-image: url(' 'Apache Software Foundation')) and (*/self::ng:* or */self::db:*)"> + toss the namespace and continue. Someday we'll reverse this logic + and add the namespace to documents that don't have one. + But not before the whole stylesheet has been converted to use + namespaces. i.e., don't hold your breath --> Stripping namespace from DocBook 5 document. - + Processing stripped document. + + + + Unable to strip the namespace from DB5 document, + cannot proceed. + + - - - - - ID ' - - ' not found in document. - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + ID ' + + ' not found in document. + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.40.0