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

RE: minor grouping issue

Subject: RE: minor grouping issue
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 7 May 2005 15:58:55 +0100
RE:  minor grouping issue
It's probably simplest to put the xsl:number within an xsl:choose to
distinguish the two cases. However, the from value is a pattern so you could
write something like

from="db:chapter[$multichapter] | db:article[not($multichapter)]"

where $multichapter is a boolean variable (or expression)

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Bruce D'Arcus [mailto:bdarcus@xxxxxxxxx] 
> Sent: 07 May 2005 15:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  minor grouping issue
> 
> 
> On May 7, 2005, at 9:10 AM, Michael Kay wrote:
> 
> > <xsl:number level="any" count="footnote" from="chapter"/>
> 
> Excellent; thanks!
> 
> So then, if I want to bring this together with the other issue that 
> David C. helped me with last night, what's the best way to have the 
> from value conditioned on a parameter or variable?
> 
> This is what I ended up with the solve the other related problem.  So 
> in my importing stylesheet, I override $chapters with a 
> definition that 
> includes all the chapters.
> 
>    <xsl:variable name="chapters" select="/"/>
>    <xsl:variable name="citerefs" 
> select="($chapters)//db:biblioref/@linkend,
>                                          
> /course:syllabus//course:reading/@refid,
>                                          //cite:biblioref/@key"/>
> 
> So for the footnotes, if I have multiple db:chapter or 
> $chapters/db:chapter elements, then it should count within those 
> chapters.  Otherwise, it should count over the document (which would 
> probably be db:article).
> 
> Bruce

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.