[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:number question

Subject: xsl:number question
From: Ruediger Geys <ruediger.geys@xxxxxxxxxx>
Date: Thu, 17 Oct 2002 08:26:30 +0200 (CEST)
geys
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.