This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: "interleaved" numbering
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 21 Aug 2002 14:42:23 +0100
- Subject: RE: [xsl] "interleaved" numbering
- Reply-to: xsl-list at lists dot mulberrytech dot com
wayhay, xsl:number my favourite element ;)
wont simply leaving out <subsection> from the count attribute give you
what you need?
<xsl:number level="multiple" format="1.1.1"
count="block|chapter|section|theorem"/>
If not, please post some sample data and the results you need. Its sooo
much easier to work with examples than with descriptions.
cheers
andrew
> -----Original Message-----
> From: jody@ifi.unizh.ch [mailto:jody@ifi.unizh.ch]
> Sent: 21 August 2002 14:20
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] "interleaved" 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@ifi.unizh.ch
> +-------------------------------------------+
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list