List Info

Thread: roundtrip: Heading1/2/3...




roundtrip: Heading1/2/3...
user name
2007-02-16 20:07:54
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

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )