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

"interleaved" numbering

Subject: "interleaved" numbering
From: jody@xxxxxxxxxxxx
Date: 21 Aug 2002 15:19:38 +0200
legal numbering
I have a hierarchic structure
block
  chapter
    section
      subsection

with standard legal numbering (examples):
 1 block
 2.3 chapter
 1.6.2 section
 3.1.1.2 subsection

within the subsections, there are
theorem elements, but their numbering
should be relative to the sections,
and not the subsections.
Example
  Assuming there are 2 theorem-elements in
  section 1, subsection 1
  and one theorem-element one theorem-element each in
  section 1, subsection 2
  section 2, subsection 1
  Then i want these theorems to be numbered
  1.1, 1.2, 1.3, 2.1

i have tried
 <xsl:number level="multiple"
             count="theorem|section"
             format="1.1"/>
also including various "from" values
but none have succeeded.

If my plan is possible, how do i have to do it?
(perhaps using variables?)


Thanks
  Jody
+-------------------------------------------+
 Jody Weissmann
 Computer Science Department
 University Zurich
 Winterthurerstr 190
 CH-8057 Zurich
 Phone: +41(0)1 625 43 17
 eMail: jody@xxxxxxxxxxxx
+-------------------------------------------+




 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.