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

RE: "interleaved" numbering

Subject: RE: "interleaved" numbering
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Wed, 21 Aug 2002 14:42:23 +0100
html legal numbering
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@xxxxxxxxxxxx [mailto:jody@xxxxxxxxxxxx]
> Sent: 21 August 2002 14:20
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  "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@xxxxxxxxxxxx
> +-------------------------------------------+
> 
> 
> 
> 
>  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


Current Thread
  • "interleaved" numbering
    • jody - Wed, 21 Aug 2002 09:19:10 -0400 (EDT)
      • <Possible follow-ups>
      • Andrew Welch - Wed, 21 Aug 2002 09:41:26 -0400 (EDT) <=

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.