xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject cvs commit: xml-xalan/test/tests/bugzilla Bugzilla6337.xml Bugzilla6337.xsl
Date Mon, 11 Feb 2002 14:21:09 GMT
curcuru     02/02/11 06:21:09

  Added:       test/tests/bugzilla Bugzilla6337.xml Bugzilla6337.xsl
  Log:
  Reproduce Bugzilla6337
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/bugzilla/Bugzilla6337.xml
  
  Index: Bugzilla6337.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <?xml-stylesheet type="text/xsl" href="broken.xsl"?>
  <report>
    <colData colId="F">1</colData>
    <colData colId="L">5</colData>
    <colData colId="F">1</colData>
    <colData colId="L">5</colData>
    <colData colId="L">2</colData> <!-- If you delete this line it works -->
    <colData colId="F">2</colData> 
    <colData colId="L">5</colData>
    <colData colId="F">2</colData>
  </report>
  
  
  1.1                  xml-xalan/test/tests/bugzilla/Bugzilla6337.xsl
  
  Index: Bugzilla6337.xsl
  ===================================================================
  <xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0" >
  
  <!-- User mark@ssglimited.com (Mark Peterson) claims in Xalan-J 2.2.0:
  The XSL file, below, should make $flights= {"1","2"}, but it contains {"1"} - 
  when using the XML example file shown below.
  xml-xalan CVS 11-Feb-02 9AM returns <out>1<br/></out> -sc
  -->
  
  <xsl:variable name="flights" select="/report/colData[@colId='F' and not(.=preceding::colData)]"/>
  
  <xsl:template match="/report">
  <out>
      <xsl:for-each select="$flights">
          <xsl:value-of select="." /><br />
      </xsl:for-each>
  </out>
  </xsl:template>
  
   
  </xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message