Grrr, I just realized I've sent this only to Michael Ludwig and not the ML. A mistake I'm always making when new to a list. Sorry all, my reply is after the quotes.
> Dominik Reichardt schrieb am 16.08.2010 um 04:23 (+0200): > >> On top of our documentation we provide a changelog with which we begin >> numbering our chapters/sections but since it is only the changes we >> start at 0 by doing: >> >> <xsl:template name="TOC"> >> <xsl:for-each select="section"> >> <xsl:number level="multiple" >> count="section" >> format="1. " >> value="position() -1"/> >> <xsl:value-of select="@title"/><xsl:text>
</xsl:text> > > Not sure how you're generating your TOc. Couldn't you just use something > like: > > > > 1. > 1.1. > 1.2. > 2. > 2.1. > 2.1.1. > 2.1.2. > 2.2. > What I'm aiming to get and what I get with xalan-j 2.6.0 is 0. 0.1. 0.2. 1. 1.1. 1.2. With the exact same files I get with xalan-j 2.7.x 0 01 02 1. 1.1. 1.2. notice the missing dots >> Anyone know why this is happening? Is this a known bug or should I try >> to submit a bug report? Or is this plain user error? > > For me, that's difficult to say without knowing what you're actually > doing. > I'm using the xml file http://exult.svn.sourceforge.net/viewvc/exult/exult/trunk/docs/xml/docs.xml?revision=6322 and the dtd file http://exult.svn.sourceforge.net/viewvc/exult/exult/trunk/docs/xml/docs.dtd?revision=4839 with the xsl file http://exult.svn.sourceforge.net/viewvc/exult/exult/trunk/docs/xml/text.xsl?revision=4838 to produce a text file (or with other xsl files to produce php and html files) with this makefile http://exult.svn.sourceforge.net/viewvc/exult/exult/trunk/docs/xml/Makefile?revision=6206 >> At http://exult.svn.sourceforge.net/viewvc/exult/exult/trunk/docs/xml/ >> you can browse the xml/xsl stuff, a sourcecode snapshot […] > > I have no idea if this is a bug or a bugfix. It would be easier if you > supplied a minimal, self-contained example (like above) that exposes the > behaviour - correct or incorrect - that you're seeing. > Unfortunately I'm mostly using this and not making it, when I spent some hours to wrap my head around it I kind of understand what I'm doing and can do little fixes but the whole template thing has not been started by me. The whole thing is over eight years old and might be a bit backwards at times or not as simple as it could be. -- Take care Dominik Reichardt