From 2d2b604eb8e709c1ac70be83aa72e7a92a7efcdf Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Fri, 13 Sep 2013 18:04:54 +0000 Subject: [PATCH] Add mode="xrefstyle" to replace many instances of redundant code determining the xrefstyle with xsl:apply-templates select="." mode="xrefstyle". Also allows stylesheet customization to specify an xrefstyle per element type. --- xsl/common/common.xsl | 12 +++++++++ xsl/common/olink.xsl | 40 +++-------------------------- xsl/common/titles.xsl | 25 +++++++++--------- xsl/fo/xref.xsl | 59 +++++++++++++++++-------------------------- xsl/html/xref.xsl | 38 +++++++++++----------------- 5 files changed, 66 insertions(+), 108 deletions(-) diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index d62bcc986..5e84e8d4c 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -2107,4 +2107,16 @@ engine does not support it. + + + + + + + + + + + diff --git a/xsl/common/olink.xsl b/xsl/common/olink.xsl index fb382f5c6..eedb3c701 100644 --- a/xsl/common/olink.xsl +++ b/xsl/common/olink.xsl @@ -640,15 +640,7 @@ - - - - - - - - + @@ -1082,15 +1074,7 @@ - - - - - - - - + @@ -1142,15 +1126,7 @@ - - - - - - - - + @@ -1213,15 +1189,7 @@ - - - - - - - - + + + + @@ -785,24 +788,20 @@ title of the element. This does not include the label. a title. See bugs #1811721 and #1838136. --> - + + + + - - - - - - - - - - - + - + + + + diff --git a/xsl/fo/xref.xsl b/xsl/fo/xref.xsl index bff98df2e..77a1ab26f 100644 --- a/xsl/fo/xref.xsl +++ b/xsl/fo/xref.xsl @@ -56,18 +56,9 @@ - - - - - - - - - - - + + + @@ -166,6 +157,10 @@ + + + + @@ -211,28 +206,25 @@ - + + + + - - - - - - - - - - + - + + + + @@ -445,10 +437,14 @@ + + [ + + ] @@ -859,18 +855,9 @@ - - - - - - - - - - - + + + diff --git a/xsl/html/xref.xsl b/xsl/html/xref.xsl index 07581846c..5e5660cca 100644 --- a/xsl/html/xref.xsl +++ b/xsl/html/xref.xsl @@ -53,17 +53,9 @@ - - - - - - - - - - + + + @@ -140,6 +132,9 @@ + + + @@ -210,7 +205,10 @@ - + + + + @@ -222,21 +220,15 @@ - - - - - - - - - - + - + + + + -- 2.40.0