How do I add section numbering of topics in PDF output in the DITA OT? I mean numbering like this:
1. Heading
Some content
1.2. Heading
Some more content
1.2.1. Heading
Some further content
EDIT: My question was a bit unclear, I realize. I meant to say topic numbering (meant section in the more generic sense than section as a DITA element). Also, I know how to do this in code, but was wondering if I had missed some easier way to do this by simple configuration in the DITA OT - like a switch on or off argument or something. It's such a common request that it should be easier than having to modify stylesheets like this all the time:
You could use DITA-OT PDF plug-in generator, it has a switch for numbering all hierarchy levels. DITA-OT doesn't provide a separate configuration property for this, because it makes more sense to keep the built-in configuration set small.