diff options
author | marcus <marcus@FreeBSD.org> | 2004-10-17 00:28:02 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-10-17 00:28:02 +0000 |
commit | 9cac628234d6b2ba96f0bc81c5dfaf1082c4469b (patch) | |
tree | ff817751aebabf733733e0112438320df32ee37f /finance | |
parent | 4b2d8b13626247607cd7353ece61ae503b5abe01 (diff) | |
download | FreeBSD-ports-9cac628234d6b2ba96f0bc81c5dfaf1082c4469b.zip FreeBSD-ports-9cac628234d6b2ba96f0bc81c5dfaf1082c4469b.tar.gz |
Make these stylesheets XSLT compliant by making sure templates with the same
name are not included multiple times into the same stylesheet. Instead,
use <xsl:import/>, and nest them with the proper import precedence so that
the proper overrides occur.
As of libxslt-1.1.11, stricter template name checking is done with
<xsl:include/>.
Reported by: pointyhat via kris
Diffstat (limited to 'finance')
-rw-r--r-- | finance/gnucash-docs/files/patch-xsl_general-customization.xsl | 16 | ||||
-rw-r--r-- | finance/gnucash-docs/files/patch-xsl_titlepage2.xsl | 18 |
2 files changed, 34 insertions, 0 deletions
diff --git a/finance/gnucash-docs/files/patch-xsl_general-customization.xsl b/finance/gnucash-docs/files/patch-xsl_general-customization.xsl new file mode 100644 index 0000000..99535da --- /dev/null +++ b/finance/gnucash-docs/files/patch-xsl_general-customization.xsl @@ -0,0 +1,16 @@ +--- xsl/general-customization.xsl.orig Sat Oct 16 20:19:30 2004 ++++ xsl/general-customization.xsl Sat Oct 16 20:19:53 2004 +@@ -13,11 +13,11 @@ + <!-- Including new title page stylesheets for customizing the placement + of tags in the title page. --> + <!-- This one is autogenerated from titlepage.xml --> +-<xsl:include href="titlepage.xsl"/> ++<!--<xsl:include href="titlepage.xsl"/>--> + + <!-- This one was edited by hand, to make titlepage a separate chunk + for book and aricle --> +-<xsl:include href="titlepage2.xsl"/> ++<xsl:import href="titlepage2.xsl"/> + + <!-- Make a separate titlepage and link it behind the main page. --> + <xsl:param name="generate.titlepage.link" select="1"/> diff --git a/finance/gnucash-docs/files/patch-xsl_titlepage2.xsl b/finance/gnucash-docs/files/patch-xsl_titlepage2.xsl new file mode 100644 index 0000000..3acf620 --- /dev/null +++ b/finance/gnucash-docs/files/patch-xsl_titlepage2.xsl @@ -0,0 +1,18 @@ +--- xsl/titlepage2.xsl.orig Sat Oct 16 20:19:35 2004 ++++ xsl/titlepage2.xsl Sat Oct 16 20:20:35 2004 +@@ -4,6 +4,8 @@ + <!-- This is a customization layer, to change some of the things in + auto-generated titlepage.xsl --> + ++ <xsl:import href="titlepage.xsl"/> ++ + <xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="book.titlepage"> + <!-- Added to create a separate titlepage --> + <xsl:param name="next" select="."/> +@@ -217,4 +219,4 @@ + </xsl:otherwise> + </xsl:choose> + </xsl:template> +-</xsl:stylesheet> +\ No newline at end of file ++</xsl:stylesheet> |