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 [EMAIL PROTECTED] (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/[EMAIL PROTECTED]'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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to