Michael Wechner wrote:

Joern Nettingsmeier wrote:


let's whine at the devs in unison to provide a standard mechanism for
modules to add header elements :-D
i had planned to look into it today, but alas...

what about the fallback for page2xhtml-RESOURCETYPE.xsl in the case
of the default publication resp. overwriting?


Here is a start:

in modules/opendocument/xslt/opendocument2xhtml.xsl, under
<div id="body">
<xsl:apply-templates select="office:body/office:text"/>
</div>

add:
<div id="css">
<xsl:apply-templates select="office:automatic-styles"/>
</div>

in pubs/default/xslt/page2xhtml.xsl, under
     <xsl:choose>
       <xsl:when test="$document-type">
<link rel="stylesheet" href="{$root}/css/{$document-type}.css" type="text/css"/>
       </xsl:when>
       <xsl:otherwise>
           <!-- do nothing -->
       </xsl:otherwise>
     </xsl:choose>
add:
     <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 'css']"/>

It fixes the bold and italic, but not font sizes, etc...

BTW: is there a way to integrate the opendocument2xhtml.xsl from J. David Eisenberg into Lenya (re copyrights)? Shall we ask him if he would be ready to donate it to the ASF?

- Renaud


Michi


best,


jörn









--
Renaud Richardet
COO America
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
office +1 857 776-3195                     mobile +1 617 230 9112
renaud.richardet <at> wyona.com              http://www.wyona.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to