[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Docbook 4 to 5 conversion issues
Hi, 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: <section> After conversion this is: <section><info><title>atitle</title></info> 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. <xsl:for-each select="node()"> Any help will be appreciated. Regards Iwan Aucamp |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]