This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Counting nodes processed


Hi Jay,

I forgot to count the Topics of the current Category, so change it to

<xsl:apply-templates
select="Topic[count(../preceding-sibling::Category/Topic|preceding-sibling::
Topic) &lt; 5]"/>

Regards,

Joerg

> Joerg,
>
> Hmmm... seemed to print out all topics for a category.  Any hints?
Changed it to lt; 1 and it still printed out all topics for a category
>
> Jay
>
> -----Original Message-----
> From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de]
> Sent: Tuesday, March 05, 2002 1:11 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] Counting nodes processed
>
>
> <xsl:template match="TopicOwner">
>     <xsl:apply-templates select="Category"/>
> </xsl:template>
>
> <xsl:template match="Category">
>     <xsl:value-of select="@name"/>
>     <xsl:apply-templates
> select="Topic[count(../preceding-sibling::Category/Topic) &lt; 5]"/>
> </xsl:template>
>
> <xsl:template match="Topic">
>     <xsl:value-of select="@name"/>
> </xsl:template>
>
> Regards,
>
> Joerg


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]