At 2003-11-26 15:55 -0400, Rob Stote wrote:
>I want to create a document that has a few figures and tables in it, I would
>like them to automatically number themselves.
>figure 1.1 for the first image, and then the second would automatically
>number itself figure 1.2.
What is giving you the "1" in your example above? Perhaps the chapter
number? I'm assuming then the first two figures in chapter 2 would be
"Figure 2.1" and "Figure 2.2".
If so, then you would need:
<xsl:number count="figure" level="any" from="chapter"/>
The earlier suggestion of using level="multiple" only works when all of the
items being counted are siblings of like kind, which is not true in your
case because you state the figures and tables are sparse.
I hope this helps.
Next public European delivery: 3-day XSLT/2-day XSL-FO 2004-01-??
Instructor-led on-site corporate, government & user group training
for XSLT and XSL-FO world-wide: please contact us for the details
G. Ken Holman mailto:gkholman@...
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 0-13-140374-5 Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X Practical Formatting Using XSL-FO
Member of the XML Guild of Practitioners: http://XMLGuild.info
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc