This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
"interleaved" numbering
- From: jody at ifi dot unizh dot ch
- To: XSL-List at lists dot mulberrytech dot com
- Date: 21 Aug 2002 15:19:38 +0200
- Subject: [xsl] "interleaved" numbering
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@ifi.unizh.ch
+-------------------------------------------+
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list