From: Alexey Neyman Date: Wed, 25 Sep 2013 22:38:32 +0000 (+0000) Subject: Make olink errors/warnings overridable in customizations. X-Git-Tag: release/1.79.1~6^2~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94eb474d9a94f8f2421fd6b7ee03e8dad7587af7;p=docbook-dsssl Make olink errors/warnings overridable in customizations. --- diff --git a/xsl/common/olink.xsl b/xsl/common/olink.xsl index 83698d030..d9301b1d8 100644 --- a/xsl/common/olink.xsl +++ b/xsl/common/olink.xsl @@ -18,6 +18,40 @@ use="concat(ancestor::document/@targetdoc, '/', @targetptr, '/', ancestor::document/@lang)" /> + + + + + + Olink error: + + + + + + + + + + Olink warning: + + + + + + + + + + + Error: unresolved olink: targetdoc/targetptr = ' + + / + + '. + + + @@ -50,27 +84,33 @@ - - Olinks not processed: must specify a - $target.database.document parameter - when using olinks with targetdoc - and targetptr attributes. - + + + olinks not processed: must specify a + $target.database.document parameter + when using olinks with targetdoc + and targetptr attributes. + + - - Olink error: the targetset element and children in ' - - ' should not be in any namespace. - + + + the targetset element and children in ' + + ' should not be in any namespace. + + - - Olink error: could not open target database ' - - '. - + + + could not open target database ' + + '. + + @@ -504,23 +544,27 @@ select="key('targetdoc-key', $current.docid)[1]/parent::dir"/> - + - - Olink error: cannot compute relative - sitemap path because $current.docid ' - - ' not found in target database. - + + + cannot compute relative + sitemap path because $current.docid ' + + ' not found in target database. + + - - Olink warning: cannot compute relative - sitemap path without $current.docid parameter - + + + cannot compute relative + sitemap path without $current.docid parameter + + @@ -808,63 +852,71 @@ - - Olink error: no gentext template - exists for xrefstyle ' - - ' for element ' - - ' in language ' - - ' in context 'xref-number-and-title - '. Using template without @style. - + + + no gentext template + exists for xrefstyle ' + + ' for element ' + + ' in language ' + + ' in context 'xref-number-and-title + '. Using template without @style. + + - - Olink error: no gentext template - exists for xrefstyle ' - - ' for element ' - - ' in language ' - - ' in context 'xref-number - '. Using template without @style. - + + + no gentext template + exists for xrefstyle ' + + ' for element ' + + ' in language ' + + ' in context 'xref-number + '. Using template without @style. + + - - Olink error: no gentext template + + + no gentext template + exists for xrefstyle ' + + ' for element ' + + ' in language ' + + ' in context 'xref + '. Using template without @style. + + + + + + + + no gentext template exists for xrefstyle ' ' for element ' ' in language ' - ' in context 'xref - '. Using template without @style. - - - - - - Olink error: no gentext template - exists for xrefstyle ' - - ' for element ' - - ' in language ' - - '. Trying '%t'. - + '. Trying '%t'. + + @@ -993,24 +1045,26 @@ - - Olink error: no generated text for - targetdoc/targetptr/lang = ' - - '. - + + + no generated text for targetdoc/targetptr/lang = ' + + '. + + ???? - - Olink error: no generated text for - targetdoc/targetptr/lang = ' - - '. - + + + no generated text for targetdoc/targetptr/lang = ' + + '. + + ???? @@ -1043,7 +1097,13 @@ - Olink error: cannot locate targetdoc in sitemap + + + cannot locate targetdoc + + in sitemap + + diff --git a/xsl/fo/xref.xsl b/xsl/fo/xref.xsl index 93fdfa68b..7d2faa021 100644 --- a/xsl/fo/xref.xsl +++ b/xsl/fo/xref.xsl @@ -1178,14 +1178,10 @@ - - Error: unresolved olink: - targetdoc/targetptr = ' - - / - - '. - + + + + @@ -1557,11 +1553,13 @@ - - Olink error: no page number linkend for local olink ' - - ' - + + + no page number linkend for local olink ' + + ' + + diff --git a/xsl/html/chunk-common.xsl b/xsl/html/chunk-common.xsl index 3963505bb..9dc17185d 100644 --- a/xsl/html/chunk-common.xsl +++ b/xsl/html/chunk-common.xsl @@ -1304,23 +1304,27 @@ select="key('targetdoc-key', $current.docid)[1]/parent::dir"/> - + - - Olink error: cannot compute relative - sitemap path because $current.docid ' - - ' not found in target database. - + + + cannot compute relative + sitemap path because $current.docid ' + + ' not found in target database. + + - - Olink warning: cannot compute relative - sitemap path without $current.docid parameter - + + + cannot compute relative + sitemap path without $current.docid parameter + + diff --git a/xsl/html/xref.xsl b/xsl/html/xref.xsl index ffb34c48c..de33ae5a9 100644 --- a/xsl/html/xref.xsl +++ b/xsl/html/xref.xsl @@ -1128,14 +1128,10 @@ - - Error: unresolved olink: - targetdoc/targetptr = ' - - / - - '. - + + + + diff --git a/xsl/website/olink.xsl b/xsl/website/olink.xsl index 6766bdd39..ce1590e1b 100644 --- a/xsl/website/olink.xsl +++ b/xsl/website/olink.xsl @@ -211,23 +211,27 @@ select="key('targetdoc-key', $current.docid)/parent::dir"/> - + - - Olink error: cannot compute relative - sitemap path because $current.docid ' - - ' not found in target database. - + + + cannot compute relative + sitemap path because $current.docid ' + + ' not found in target database. + + - - Olink warning: cannot compute relative - sitemap path without $current.docid parameter - + + + cannot compute relative + sitemap path without $current.docid parameter + +