[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: roundtrip - normalise-common.xsl - customization and section numbering
Hi there, I am trying to customize normalise-common.xsl to remap the custom style to proper 'known names' for wordml rountrip. I am hitting a small issue here. Here is my custom normalise-common.xsl: <xsl:template name='rnd:map-paragraph-style'> <xsl:param name='style'/> <xsl:choose> <xsl:when test='$style = "Heading1"'>sect1-title</xsl:when> <xsl:when test='$style = "Heading2"'>sect2-title</xsl:when> <xsl:when test='$style = "Heading3"'>sect3-title</xsl:when> <xsl:when test='$style = "Heading4"'>sect4-title</xsl:when> <xsl:when test='$style = "Heading5"'>sect5-title</xsl:when> ... However I do not understand: 1. how I can handle Heading6, Heading7 and Heading8 (they are present in my original Word document). 2. This might be related to (1). How do I handle mismatch in original document such as: ERROR "bad-title": title style "sect4-title" mismatches parent "sect2" ERROR "bad-title": title style "sect5-title" mismatches parent "sect3" Basically would it be possible to handle the generic 'section' docbook element ? Thanks ! -- Mathieu
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]