dmarston 2002/12/04 14:25:40 Added: test/tests/conf/axes axes131.xsl axes131.xml Log: Yet another angle covered Revision Changes Path 1.1 xml-xalan/test/tests/conf/axes/axes131.xsl Index: axes131.xsl =================================================================== <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: axes131 --> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 2.2 --> <!-- Creator: Henry Zongaro --> <!-- Purpose: Test for descendant axis when siblings have some children or the context node has no siblings. --> <xsl:output method="xml" encoding="UTF-8" indent="no" /> <xsl:template match="doc"> <out> <xsl:for-each select="child"> <xsl:text> </xsl:text> <child number="{position()}"> <xsl:for-each select="grandchild"> <xsl:text> </xsl:text> <grandchild number="{position()}"> <xsl:attribute name="descendantaxiscount"><xsl:value-of select="count(descendant::*)"/></xsl:attribute> <xsl:attribute name="descendantorselfaxiscount"><xsl:value-of select="count(descendant-or-self::*)"/></xsl:attribute> </grandchild> </xsl:for-each> <xsl:text> </xsl:text> </child> </xsl:for-each> <xsl:text> </xsl:text> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/axes/axes131.xml Index: axes131.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <doc> <child><grandchild><greatgrandchild/></grandchild><grandchild><greatgrandchild><greatgreatgreatgrandchild/></greatgrandchild><greatgrandchild/></grandchild></child> <child><grandchild><greatgrandchild/><greatgrandchild/><greatgrandchild/></grandchild></child> <child><grandchild><greatgrandchild/></grandchild></child> <child><grandchild/></child> <child><grandchild/><grandchild/></child> <child/> </doc>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]