[ http://issues.apache.org/jira/browse/FOR-872?page=comments#action_12376414 ]
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 http://svn.apache.org/viewcvs?rev=394204&view=rev
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" />
</map:when>
</map:select>
</map:resource>
where {lm:transform.odt.xhtml.forrest} looks kind of
http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl?rev=394204&view=markup
> Updated odt_to_xhtml.xsl to pass <title> & <h1> elements.
> ---------------------------------------------------------
>
> Key: FOR-872
> URL: http://issues.apache.org/jira/browse/FOR-872
> 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|