Hello Dave, hello Jirka, great! This works. I had the problem if I put this directly into my customizing layer that the TOC and the numbering of the chapters would still be incorrect.
But if I run this as a two step it works perfectly. Thanks again, this saves a ton of work (and would have saved a ton of work over the last weeks if I had known this before ;-) ) Best regards, Lars 2011/11/27 Jirka Kosek <[email protected]> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 27.11.2011 16:56, Lars Vogel wrote: > > > <xsl:template match="@*|node()"> <xsl:apply-templates > > select="@*|node()" /> </xsl:template> > > > > This should be: > > <xsl:template match="@*|node()"> > <xsl:copy> > <xsl:apply-templates select="@*|node()" /> > </xsl:copy> > </xsl:template> > > It's sometimes considered flaw in XSLT design, that default action is > only copy text, not also elements. But XSLT 3.0 will provide some new > features around this :-) > > - -- > - ------------------------------------------------------------------ > Jirka Kosek e-mail: [email protected] http://xmlguru.cz > - ------------------------------------------------------------------ > Professional XML consulting and training services > DocBook customization, custom XSLT/XSL-FO document processing > - ------------------------------------------------------------------ > OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member > - ------------------------------------------------------------------ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk7SZQgACgkQzwmSw7n0dR6bXgCfbx2NKeLfY0q22y0WlSco8Hzd > 77gAn21K32jbkO4dw99qnWG7U1cqZNh1 > =6hwW > -----END PGP SIGNATURE----- > -- Lars http://www.vogella.de - Eclipse, Android and Java Tutorials http://www.twitter.com/vogella - Lars on Twitter
