OSDN Git Service

2009-08-18 Frank Ch. Eigler <fche@elastic.org>
authorfche <fche>
Wed, 19 Aug 2009 00:55:03 +0000 (00:55 +0000)
committerfche <fche>
Wed, 19 Aug 2009 00:55:03 +0000 (00:55 +0000)
* component_html.xsl: Correct minor errors caught by recent xslt.

sid/component/ChangeLog
sid/component/component_html.xsl

index 82f0cd2..c9be265 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-18  Frank Ch. Eigler  <fche@elastic.org>
+
+       * component_html.xsl: Correct minor errors caught by recent xslt.
+
 2007-02-05  Dave Brolley  <brolley@redhat.com>
 
        * Contribute the following changes:
index ec6192c..fd5fbf6 100644 (file)
@@ -5,9 +5,9 @@
   <!-- call this with a result-tree-fragment -->
   <xsl:template name="maybecell-copy">
     <td>
-      <xsl:param name="body"></xsl:param>
+      <xsl:variable name="body" />
       <xsl:choose>
-       <xsl:when test="count($body)=0">-</xsl:when>
+       <xsl:when test="string-length($body)=0">-</xsl:when>
        <xsl:otherwise>
          <xsl:copy-of select="$body"/>
        </xsl:otherwise>
@@ -18,9 +18,9 @@
   <!-- call this with a node-set or expression value -->
   <xsl:template name="maybecell">
     <td>
-      <xsl:param name="body"></xsl:param>
+      <xsl:variable name="body" />
       <xsl:choose>
-       <xsl:when test="count($body)=0">-</xsl:when>
+       <xsl:when test="string-length($body)=0">-</xsl:when>
        <xsl:otherwise>
          <xsl:apply-templates select="$body"/>
        </xsl:otherwise>