summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2007-01-29 19:07:02 +0000
committerShaun McCance <shaunm@src.gnome.org>2007-01-29 19:07:02 +0000
commit9e96e0d8ae305d0fe53e5ec0bfea352f8d1d8665 (patch)
treea95c6b1e9c1d16bd95b18d1aa2fa8416809d6246
parentd9825c07f8b404f8729a0e533bcbae0d00f95770 (diff)
downloadgnome-doc-utils-9e96e0d8ae305d0fe53e5ec0bfea352f8d1d8665.tar.gz
- Do not do SK category code checks if the param is not passed [#402159]
* xslt/docbook/omf/db2omf.xsl: - Do not do SK category code checks if the param is not passed [#402159] svn path=/trunk/; revision=874
-rw-r--r--ChangeLog5
-rw-r--r--xslt/docbook/omf/db2omf.xsl30
2 files changed, 21 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 18cdb97..e8f66d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-29 Shaun McCance <shaunm@gnome.org>
+
+ * xslt/docbook/omf/db2omf.xsl:
+ - Do not do SK category code checks if the param is not passed [#402159]
+
2007-01-26 Shaun McCance <shaunm@gnome.org>
* configure.in:
diff --git a/xslt/docbook/omf/db2omf.xsl b/xslt/docbook/omf/db2omf.xsl
index 539d936..7d80fbb 100644
--- a/xslt/docbook/omf/db2omf.xsl
+++ b/xslt/docbook/omf/db2omf.xsl
@@ -107,8 +107,7 @@ The path to the installed scrollkeeper_cl.xml file
REMARK: Document what this is for
-->
-<xsl:param name="db2omf.scrollkeeper_cl"/>
-<xsl:variable name="sk_cl" select="document($db2omf.scrollkeeper_cl)"/>
+<xsl:param name="db2omf.scrollkeeper_cl" select="false()"/>
<!--**==========================================================================
@@ -453,18 +452,21 @@ REMARK: Document this
<xsl:text>.</xsl:text>
</xsl:message>
</xsl:if>
- <xsl:for-each select="$subject">
- <xsl:variable name="code" select="translate(@category, '|', '')"/>
- <xsl:if test="not($sk_cl//sect[@categorycode = $code])">
- <xsl:message terminate="yes">
- <xsl:text>db2omf: Invalid subject code "</xsl:text>
- <xsl:value-of select="@category"/>
- <xsl:text>" in </xsl:text>
- <xsl:value-of select="$db2omf.omf_in"/>
- <xsl:text>.</xsl:text>
- </xsl:message>
- </xsl:if>
- </xsl:for-each>
+ <xsl:if test="$db2omf.scrollkeeper_cl">
+ <xsl:variable name="sk_cl" select="document($db2omf.scrollkeeper_cl)"/>
+ <xsl:for-each select="$subject">
+ <xsl:variable name="code" select="translate(@category, '|', '')"/>
+ <xsl:if test="not($sk_cl//sect[@categorycode = $code])">
+ <xsl:message terminate="yes">
+ <xsl:text>db2omf: Invalid subject code "</xsl:text>
+ <xsl:value-of select="@category"/>
+ <xsl:text>" in </xsl:text>
+ <xsl:value-of select="$db2omf.omf_in"/>
+ <xsl:text>.</xsl:text>
+ </xsl:message>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
<xsl:copy-of select="$subject"/>
</xsl:template>