[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: roundtrip: Heading1/2/3...
Hello again ;) So I am now working on my next issue the support of Heading1/2/3... I have started something like: $ svn di Index: wordml-final.xsl =================================================================== --- wordml-final.xsl (revision 6616) +++ wordml-final.xsl (working copy) @@ -2,6 +2,7 @@ <!DOCTYPE xsl:stylesheet [ <!ENTITY para "w:p[w:pPr/w:pStyle[@w:val='para' or @w:val='Normal']]"> +<!ENTITY heading "w:p[w:pPr/w:pStyle[@w:val='heading' or @w:val='Heading1']]"> <!ENTITY continue "w:p[w:pPr/w:pStyle/@w:val='para-continue']"> <!ENTITY wordlist 'w:p[w:pPr/w:listPr/w:ilvl/@w:val = "0" and @@ -652,6 +655,14 @@ </para> </xsl:template> + <!-- heading --> + <xsl:template match="&heading;" mode="group"> + <title> + <xsl:call-template name="object.id"/> + <xsl:apply-templates select="w:r|w:hlink"/> + </title> + </xsl:template> + <!-- Unmatched para style --> <xsl:template match="w:p" mode="group"> <xsl:message>No match found for <xsl:value-of select='w:pPr/w:pStyle/@w:val'/></xsl:message> Is this the correct way ? (assuming I do the same for Heading2/3). Thanks, -- Mathieu
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]