xsl-list
[Top] [All Lists]

xsl:number question

2002-10-16 23:26:30
Hello list,

the code

<xsl:for-each select="//Section">
        <xsl:number count="Section" format="1 " level="multiple"/>
</xsl:for-each>

on a document like

<Flow>
        <Section>
                <Section>
                </Section>
        </Section>
</Flow>
<Flow>
        <Section>
        </Section>
</Flow>

Is producing the numbering

1
1.1
1

which is correct. But I would like to ignore the Flow tags when numbering
Section to get the numbering 1, 1.1, 2. Unfortunately I can not tell
xsl:number to operate on something else then the input document eg. a
selection of the Sections into a xsl:variable.

Does anyone know a solution ?

Thanks for your help :-)

greetings

        Rüdiger



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



<Prev in Thread] Current Thread [Next in Thread>
  • xsl:number question, Ruediger Geys <=