[yelp-xsl: 2/5] Fixing up some XSLT validity issues



commit 181c366614aa920fbb4e7d693cbdc7b691b70832
Author: Shaun McCance <shaunm gnome org>
Date:   Mon Apr 27 23:25:13 2015 -0400

    Fixing up some XSLT validity issues
    
    libxslt didn't seem to care, but saxon does

 xslt/docbook/html/db2html.xsl        |    4 ++--
 xslt/mallard/html/mal2html-links.xsl |    4 ++--
 xslt/mallard/html/mal2html.xsl       |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/xslt/docbook/html/db2html.xsl b/xslt/docbook/html/db2html.xsl
index c548d1e..96bd4c1 100644
--- a/xslt/docbook/html/db2html.xsl
+++ b/xslt/docbook/html/db2html.xsl
@@ -31,11 +31,11 @@ sets a namespace alias to output non-XML HTML. This stylesheet sets
 @{html.xhtml} to #{false}.
 -->
 
+<xsl:import href="db2xhtml.xsl"><?pass?></xsl:import>
+
 <xsl:param name="html.xhtml" select="false()"/>
 <xsl:param name="db.profile.outputformat" select="'html'"/>
 
-<xsl:include href="db2xhtml.xsl" pass="true"><?pass?></xsl:include>
-
 <xsl:namespace-alias stylesheet-prefix="html" result-prefix="#default"/>
 <xsl:namespace-alias stylesheet-prefix="mml" result-prefix="#default"/>
 
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index 7b95035..36b07ab 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -1198,8 +1198,8 @@ when determining which links to output.
 
 <!--#* _mal2html.links.heading -->
 <xsl:template name="_mal2html.links.heading">
-  <xsl:param name="node" select="$node"/>
-  <xsl:param name="links" select="$links"/>
+  <xsl:param name="node" select="."/>
+  <xsl:param name="links" select="/false"/>
   <xsl:param name="role" select="''"/>
   <xsl:param name="nodesc" select="false()"/>
   <ul class="links-heading">
diff --git a/xslt/mallard/html/mal2html.xsl b/xslt/mallard/html/mal2html.xsl
index 2a32d10..abcd281 100644
--- a/xslt/mallard/html/mal2html.xsl
+++ b/xslt/mallard/html/mal2html.xsl
@@ -31,11 +31,11 @@ sets a namespace alias to output non-XML HTML. In particular, this stylesheet
 sets @{html.xhtml} to #{false} and @{mal.if.target} to #{'target:html'}.
 -->
 
+<xsl:import href="mal2xhtml.xsl"><?pass?></xsl:import>
+
 <xsl:param name="html.xhtml" select="false()"/>
 <xsl:param name="mal.if.target" select="'target:html'"/>
 
-<xsl:include href="mal2xhtml.xsl" pass="true"><?pass?></xsl:include>
-
 <xsl:namespace-alias stylesheet-prefix="html" result-prefix="#default"/>
 <xsl:namespace-alias stylesheet-prefix="mml" result-prefix="#default"/>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]