You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/01/31 23:41:11 UTC

cvs commit: xml-xalan/test/tests/conf/predicate predicate37.xsl

dmarston    01/01/31 14:41:11

  Modified:    test/tests/conf/predicate predicate37.xsl
  Log:
  Revise output for easier comparison to Gold
  
  Revision  Changes    Path
  1.2       +13 -7     xml-xalan/test/tests/conf/predicate/predicate37.xsl
  
  Index: predicate37.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/predicate/predicate37.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- predicate37.xsl	2000/12/17 21:40:14	1.1
  +++ predicate37.xsl	2001/01/31 22:41:09	1.2
  @@ -7,16 +7,22 @@
     <!-- Section: 3.4 -->
     <!-- Purpose: Show that we can limit match to non-empty elements. -->
   
  -<xsl:template match="/a" > 
  -  <!-- If the node 'a' has a child 'b' that has a value in it, 
  -  then show it. Otherwise don't show it. --> 
  +<xsl:template match="/" >
  +  <out>
  +    <xsl:apply-templates/>
  +  </out>
  +</xsl:template>
   
  -  <xsl:if test='b[not(.="")]' >( <xsl:value-of select="b" /> )</xsl:if> 
  +<xsl:template match="a" >
  +  <!-- If the node 'a' has a child 'b' that has a value in it,
  +  then show it. Otherwise don't show it. -->
   
  -  <!-- If the node 'a' has a child 'c' that has a value in it, 
  -  then show it. Otherwise don't show it. --> 
  +  <xsl:if test='b[not(.="")]' >( <xsl:value-of select="b" /> )</xsl:if>
   
  -  <xsl:if test='c[not(.="")]' >( <xsl:value-of select="c" /> )</xsl:if> 
  +  <!-- If the node 'a' has a child 'c' that has a value in it,
  +  then show it. Otherwise don't show it. -->
  +
  +  <xsl:if test='c[not(.="")]' >( <xsl:value-of select="c" /> )</xsl:if>
   </xsl:template>
   
   </xsl:stylesheet>