Subject: Docbook 4 to 5 conversion issues
There is a bug with the docbook 4 to 5 conversion xslt (docbook-5.0/tools/db4-upgrade.xsl) - it drops step titles.
This is easy enough to fix in the style sheet, I just added step to the match of procedure - but I have some further issues with the conversion process.
The way title templates are applied breaks the ordering of the nodes - inserting the <info><title>... before all other nodes, which includes the text node that has the indentation ...
Example of this would be seen when converting something like:
After conversion this is:
I would really like to not have this happen and retain order of the nodes so indentation stays where I put it originally.
So my question is - how would I go about fixing this, without changing too much of the style sheet ?
I tried changing the parts that applied the templates to procedure to a for loop - and then apply templates to the current node - but this does not seem to be possilbe.
Below is example of what i tried - the apply templates did not work the way I intended it to.
Any help will be appreciated.