You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/07/03 22:12:42 UTC

[Bug 1407] - secount(//city[not(@country=preceding::city/@country)]) wrong

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1407

*** shadow/1407	Fri Jun 29 16:36:00 2001
--- shadow/1407.tmp.10860	Tue Jul  3 13:12:42 2001
***************
*** 57,60 ****
        select="count(//city[not(@country=preceding::city/@country)])"/>
  </count>
  </xsl:template>
! </xsl:stylesheet>
--- 57,83 ----
        select="count(//city[not(@country=preceding::city/@country)])"/>
  </count>
  </xsl:template>
! </xsl:stylesheet>
! 
! ------- Additional Comments From johnh@schemasoft.com  2001-07-03 13:12 -------
! -------------
! This symptom is more evident with a simpler test case:
! 
! XML
! ===
! 
! <dataset><lump><point/><point/><point/></lump></dataset>
! 
! XSL
! ===
! 
! <?xml version='1.0' encoding='utf-8' ?>
! <xsl:stylesheet version="1.0"
! xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
! 	<xsl:output method="text" indent="no"/>
! 	<xsl:template match="/">
! 		<xsl:for-each select="/dataset/lump/point">
! 			<xsl:value-of select="count( preceding::node() )"/>
! 		</xsl:for-each>
! 	</xsl:template>
! </xsl:stylesheet>