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
This commit is contained in:
parent
8543b3a289
commit
1c9327234f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119632
@ -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"/>
|
18
finance/gnucash-docs/files/patch-xsl_titlepage2.xsl
Normal file
18
finance/gnucash-docs/files/patch-xsl_titlepage2.xsl
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user