On Apr 17, 2006, at 4:35 PM, Thorsten Scherler wrote:
Thanks for the review (the code is from David Eisenberg)
http://svn.apache.org/viewcvs?rev=394229&view=rev

For anyone else, I reckon it takes 5 minutes to test. Just add to
$YOUR_PROJECT/forrest.properties
project.required.plugins=org.apache.forrest.plugin.input.odt, {more.project.required.plugins}
then:
cd $FORREST_HOME/whiteboard/plugins/ org.apache.forrest.plugin.input.odt
$FORREST_HOME/tools/ant/bin/ant local-deploy
cd $YOUR_PROJECT/$XDOCS/
svn co
http://svn.apache.org/repos/asf/lenya/trunk/src/modules/ opendocument/samples/helloworld.odt
forrest run
http://localhost:8888/helloworld.html

This worked for me. I was also able to view my own ODT docs!

The transformation to XHTML creates embedded CSS styles in the final
output. Are these carried through to the final output?

http://localhost:8888/helloworld.xml

<document>
 <header>
  <title>Converted by odt_to_xhtml.xsl</title>
  <!--
 <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
-->
<style type="text/css">
.T1{
font-weight: bold;
}
</style>
</header>
 <body>
  <section>
   <title/>
   <div class="Standard">Hello World</div>
  </section>
 </body>
</document>

That is the outcome from the html-to-document.xsl (see above
{lm:transform.html.document}) transformation (last step in the odt
plugin).

The dispatcher ignores the <style/> and as well skins from a xdoc, the
answer is *no*, embedded CSS styles in *xdocs* are *not* carried through
to the final output.

My question now is, do you think that we should suppress <style/> in the
{lm:transform.html.document}?

salu2
--
thorsten

"Together we stand, divided we fall!"
Hey you (Pink Floyd)

I'm not sure whether or not to suppress <style/>, but it would be nice to have the ability to have 'on-the-fly' ODT styles.

Clay Leeds
[EMAIL PROTECTED]

My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet