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

using count attribute in xsl:number and patterns

Subject: using count attribute in xsl:number and patterns
From: "Robert Ogden" <Robert.Ogden@xxxxxxxx>
Date: Mon, 22 Sep 2003 18:17:57 -0500
xsl count attribute
Can someone clarify how to use a pattern in the count attribute in
xsl:number?

I want to output the following sequence based on current node
position.

chapter-paranumber

The problem is that para number is used in several elements. (i.e.
intropara & para for simplicities sake)

So every time I hit a new intropara OR para the number should be
higher

XML:
<chapter>
   <intropara>An intro</intropara>
  <para>Some text<para>
</chapter>

Output
   1-1 An intro
   1-2 Some text

XSL:

<xsl:number format="1-1" level="multiple" count="chapter | para
subpara"/>
How do I include more than one element?

Thanks for any help


Robert Ogden
IETM Developer
Navy Programs
(763) 572-7121


**********CONFIDENTIALITY NOTICE**********
The information contained in this e-mail may be confidential and/or 
privileged and is intended for the sole use of the individual or 
organization named above.  If you are not the intended recipient or an 
authorized representative of the intended recipient, any review, copying
or distribution of this e-mail and its attachments, if any, is prohibited.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete this message from your system.


 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.