summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2020-10-16 11:29:32 -0400
committerShaun McCance <shaunm@redhat.com>2020-10-16 11:29:32 -0400
commit4c296beea662ad6ef8276146a05b5bc951646ced (patch)
tree16fe26a30fdfffbf7b43f5a2e48d449a618712f2
parente3baf5c957d85463834718694b45654790f3e801 (diff)
downloadyelp-xsl-4c296beea662ad6ef8276146a05b5bc951646ced.tar.gz
Added some notes to mal-if params about default values
-rw-r--r--doc/yelp-xsl/C/mal.if.features.page4
-rw-r--r--doc/yelp-xsl/C/mal.if.target.page3
-rw-r--r--xslt/mallard/common/mal-if.xsl7
3 files changed, 10 insertions, 4 deletions
diff --git a/doc/yelp-xsl/C/mal.if.features.page b/doc/yelp-xsl/C/mal.if.features.page
index 37f592c2..6d55dd34 100644
--- a/doc/yelp-xsl/C/mal.if.features.page
+++ b/doc/yelp-xsl/C/mal.if.features.page
@@ -10,7 +10,9 @@
<p>This parameter takes a space-separated list of tokens to enable for conditional
processing. It is used by the template <code xref="mal.if.test">mal.if.test</code>. This parameter is meant
to hold tokens that specify the capabilities of these stylesheets. It should
- usually be set by the primary importing stylesheet.</p>
+ usually be set by the primary importing stylesheet. The default in this
+ stylesheet is just <sys>'mallard:1.0'</sys>, but it is set to a more complete set of
+ features by the importing HTML and XHTML stylesheets.</p>
<synopsis>
<terms>
<item>
diff --git a/doc/yelp-xsl/C/mal.if.target.page b/doc/yelp-xsl/C/mal.if.target.page
index 1809d6b3..9a1e9c49 100644
--- a/doc/yelp-xsl/C/mal.if.target.page
+++ b/doc/yelp-xsl/C/mal.if.target.page
@@ -10,7 +10,8 @@
<p>This parameter takes a space-separated list of tokens to enable for conditional
processing. It is used by the template <code xref="mal.if.test">mal.if.test</code>. This parameter is meant
to hold tokens starting with <sys>target:</sys>. It should usually be set by the primary
- importing stylesheet.</p>
+ importing stylesheet. The default in this stylesheet is just <sys>''</sys>, but it is
+ set to appropriate values by the importing HTML and XHTML stylesheets.</p>
<synopsis>
<terms>
<item>
diff --git a/xslt/mallard/common/mal-if.xsl b/xslt/mallard/common/mal-if.xsl
index 0a3e7d1a..5b4b3d06 100644
--- a/xslt/mallard/common/mal-if.xsl
+++ b/xslt/mallard/common/mal-if.xsl
@@ -39,7 +39,8 @@ The list of supported target tokens.
This parameter takes a space-separated list of tokens to enable for conditional
processing. It is used by the template {mal.if.test}. This parameter is meant
to hold tokens starting with `target:`. It should usually be set by the primary
-importing stylesheet.
+importing stylesheet. The default in this stylesheet is just `''`, but it is
+set to appropriate values by the importing HTML and XHTML stylesheets.
-->
<xsl:param name="mal.if.target" select="''"/>
@@ -65,7 +66,9 @@ The list of supported feature tokens.
This parameter takes a space-separated list of tokens to enable for conditional
processing. It is used by the template {mal.if.test}. This parameter is meant
to hold tokens that specify the capabilities of these stylesheets. It should
-usually be set by the primary importing stylesheet.
+usually be set by the primary importing stylesheet. The default in this
+stylesheet is just `'mallard:1.0'`, but it is set to a more complete set of
+features by the importing HTML and XHTML stylesheets.
-->
<xsl:param name="mal.if.features" select="'
mallard:1.0