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

RE: <xsl:number?

Subject: RE: <xsl:number?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 00:11:47 +0100
xsl number level multiple
Anyone who can work out what xsl:number does by reading the XSLT 1.0
specification alone can join the elite. It's James Clark prose at its most
magnificent. 

I have my own views on how to write specs, but a spec is not a tutorial.

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

> -----Original Message-----
> From: Dan Vint [mailto:dvint@xxxxxxxxx] 
> Sent: 14 September 2005 23:41
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  <xsl:number?
> 
> thanks,
> 
> you are saying the same thing as Chris did, which fixed my 
> problem. In this 
> case you are referencing the fact that level defaults to 
> single, where 
> Chris indicated to set it to any - which fixed my problem.
> 
> I had another related problem with a multiple numbering scheme. In 
> rereading the 7.7 section of XSLT and playing with the values 
> I discovered 
> that there is a need to sometimes use two or more 
> <xsl:number> elements 
> together to get the numbering that you want. Some how I had 
> managed to have 
> tables and figures all appear at the same level up until this 
> week and it 
> pointed out this second deficiency. This other use is shown 
> in the spec, 
> but it doesn't explain that it is the only way to make some 
> combinations 
> work. I just looked at it as an alternate way of doing what 
> the examples 
> with level=multiple were showing.
> 
> 
> ..dan
> 
> At 03:25 PM 9/14/2005, Michael Kay wrote:
> >Hard to tell what you're doing without more info, e.g. what 
> is the context
> >node?
> >
> >Using "from" with the default level="single" hardly ever 
> makes sense, and in
> >some cases in XSLT 1.0 I don't think it's well-defined (e.g. 
> in the case
> >where nothing matches the "from" pattern).
> >
> >Michael Kay
> >http://www.saxonica.com/
> >
> > > -----Original Message-----
> > > From: Dan Vint [mailto:dvint@xxxxxxxxx]
> > > Sent: 14 September 2005 20:59
> > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > Subject:  <xsl:number?
> > >
> > > I thought I understood how number worked but recently I have
> > > come across
> > > tow places where my sequence restarts in unusual places. For
> > > instance I
> > > have a simple numbering for footnotes that looks like this:
> > >
> > > <xsl:number count="footnote" from="div1" format="1"/>
> > >
> > > The way I understand this, the footnotes should be numbered
> > > sequentially
> > > starting at 1, and restart at one when ever a new div1 is seen.
> > >
> > > The result I get in my output for several footnotes that fall
> > > on the same
> > > page and inside the same div1 is as follows:
> > >
> > > 1
> > > 1
> > > 1
> > > 2
> > >
> > > Now these footnotes fall in different elements, nested at
> > > different levels,
> > > but all within the same div1. Is there something else that
> > > can affect the
> > > numbering sequence outside of the statement I have quoted above?
> > >
> > > ..dan
> > > --------------------------------------------------------------
> > > -------------
> > > Danny Vint
> > >
> > > Specializing in Panoramic Images of California and the West
> > > http://www.dvint.com
> > >
> > > voice: 510-522-4703
> 
> --------------------------------------------------------------
> -------------
> Danny Vint
> 
> Specializing in Panoramic Images of California and the West
> http://www.dvint.com
> 
> voice: 510-522-4703

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.