forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Scherler (JIRA)" <>
Subject [jira] Commented: (FOR-872) Updated odt_to_xhtml.xsl to pass <title> & <h1> elements.
Date Wed, 26 Apr 2006 07:53:05 GMT
    [ ] 

Thorsten Scherler commented on FOR-872:

IMO we should not patch the common/odt_to_xhtml.xsl.

The patch can be applyed different:
The idea is to have a forrest specific xsl which imports the common one and override some
matches and adds new ones. Like shown in

That mean we have to change the input.xmap from the odt plugin like:
<map:resource name="file-resolver">
      <map:select type="exists">
        <map:when test="{lm:project.{uri}.odt}">
          <map:generate src="zip://content.xml@{lm:project.{uri}.odt}" />
-         <map:transform src="{lm:transform.odt.xhtml}" />
+       <map:transform src="{lm:transform.odt.xhtml.forrest}" />
          <map:transform src="{lm:transform.xml.xml-namespace-stripped}" />
          <map:transform src="{lm:transform.html.document}" />
          <map:serialize type="xml" />

where {lm:transform.odt.xhtml.forrest} looks kind of

> Updated odt_to_xhtml.xsl to pass <title> & <h1> elements.
> ---------------------------------------------------------
>          Key: FOR-872
>          URL:
>      Project: Forrest
>         Type: Improvement

>   Components: Plugins: Potential new
>     Versions: 0.8-dev
>     Reporter: Clay Leeds
>     Assignee: Cyriaque Dupoirieux
>     Priority: Minor
>      Fix For: 0.8-dev
>  Attachments: odt_plugin.diff
> Modified odt_to_xhtml.xsl to pass the first text heading (office:document-content/office:body/office:text/text:h[1])
as the Forrest output's HTML <title> & <h1> elements.
> Eventually, this will be changed to grab the OpenDocument 'Title' attribute (/office:document-meta/office:meta/dc:title).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message