]> granicus.if.org Git - docbook-dsssl/commitdiff
When profile.* params only consist of space characters, then ignore them.
authorDavid Cramer <david@thingbag.net>
Sun, 16 Jan 2011 16:26:37 +0000 (16:26 +0000)
committerDavid Cramer <david@thingbag.net>
Sun, 16 Jan 2011 16:26:37 +0000 (16:26 +0000)
xsl/profiling/profile-mode.xsl

index c02132a948e1fd35f3a94039d2cf2f6b7b0ef3e5..1c8660b8f9ac5807cfa74353b950831179e9aace 100644 (file)
   <xsl:param name="sep" select="$profile.separator"/>
   <xsl:variable name="head" select="substring-before(concat($a, $sep), $sep)"/>
   <xsl:variable name="tail" select="substring-after($a, $sep)"/>
-  <xsl:if test="contains(concat($sep, $b, $sep), concat($sep, $head, $sep))">1</xsl:if>
+<!-- <xsl:message> -->
+<!-- a="<xsl:value-of select="$a"/>" -->
+<!-- a="<xsl:value-of select="normalize-space($a)"/>" -->
+<!-- head="<xsl:value-of select="$head"/>" -->
+<!-- tail="<xsl:value-of select="$tail"/>" -->
+<!-- </xsl:message> -->
+  <xsl:if test="contains(concat($sep, $b, $sep), concat($sep, $head, $sep)) or normalize-space($a) = '' ">1</xsl:if>
   <xsl:if test="$tail">
     <xsl:call-template name="cross.compare">
       <xsl:with-param name="a" select="$tail"/>