Re: [jira] Commented: (FOR-872) Updated odt_to_xhtml.xsl to pass & <h1> elements.</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=dev@forrest.apache.org&q=from:%22Web+Maestro+Clay%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Web Maestro Clay</span></span></a></span> <span class="date"><a href="/search?l=dev@forrest.apache.org&q=date:20060510" rel="nofollow">Wed, 10 May 2006 07:09:41 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre style="margin: 0em;"> On May 10, 2006, at 12:22 AM, Ross Gardler wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> Clay Leeds wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>I am looking into this further. The PATH to the files in question </tt><tt>are defined in OpenOffice.org as: </tt><tt>file:///Users/clay/Sites/myproject/src/documentation/content/ </tt><tt>xdocs/ images/picture_01.jpg </tt><tt>However, the images are embedded in the document as well (under </tt><tt>$filename.odt/Pictures/*.jpg). I might be able to reference the </tt><tt>images in the document as '/images/picture_01.jpg' but then they </tt><tt>will no longer show as an image in the OOo/OpenDocument file. </tt></blockquote><pre style="margin: 0em;"></pre><pre> </pre><tt>I recall struggling with this in the OOo plugin. I suggest you look </tt><tt>at how images are handled in there. </tt><pre style="margin: 0em;"> </pre><tt>(I would like to echo Ferdinands concerns about re-inventing the </tt><tt>wheel with this new ODT plugin. We should have at least forked the </tt><tt>OOo plugin to do this - too late now, but Clay, you should be aware </tt><tt>many problems will already be solved in the OOo plugin). </tt><pre style="margin: 0em;"> Ross </pre></blockquote><pre style="margin: 0em;"> Much of the code that is in odt was copied from OOo: - odt-to-forrest-xhtml.xsl (xsl:stylesheet elements match odt xpath) - locationmap.xml (changed pattern to point to the odt plugin files) </pre><tt>- resources.xmap (changed pattern to say 'openDocumentEmbeddedImage/ </tt><tt>zip...') </tt><pre style="margin: 0em;"> <map:sitemap xmlns:map="<a rel="nofollow" href="http://apache.org/cocoon/sitemap/1.0"">http://apache.org/cocoon/sitemap/1.0"</a>;> <map:pipelines> <map:pipeline internal="true"> <map:match pattern="openDocumentEmbeddedImage/zip-**/file-**.*"> </pre><tt> <map:read src="jar:file:///{lm:project.{1}!/{2}.{3}}" mime- </tt><tt>type="image/{3}" /> </tt><pre style="margin: 0em;"> </map:match> </pre><tt> <map:match pattern="**/openDocumentEmbeddedImage/zip-**/file- </tt><tt>**.*"> </tt><tt> <map:read src="jar:file:///{lm:project.{1}/{2}!/{3}.{4}}" </tt><tt>mime-type="image/{4}" /> </tt><pre style="margin: 0em;"> </map:match> </map:pipeline> </map:pipelines> </map:sitemap> </pre><tt>I'll keep plugging away. In any case I'll need to modify the system </tt><tt>to copy the $filename to the images/ directory structure to ensure </tt><tt>image integrity. </tt><pre style="margin: 0em;"> Web Maestro Clay [EMAIL PROTECTED] My religion is simple. My religion is kindness. -- HH Dalai Lama of Tibet </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft buttondisabled" accesskey="p" href="#">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#09424">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#09424">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg09425.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" style="display:none"> <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value=""> <input type="hidden" name="msgid" value=""> <input type="hidden" name="relpath" value=""> <input type="submit" value=""> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="dev@forrest.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search dev"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/dev@forrest.apache.org/">dev - all messages</a></li> <li class="icons-about"><a href="/dev@forrest.apache.org/info.html">dev - about the list</a></li> <li class="icons-expand"><a href="/search?l=dev@forrest.apache.org&q=subject:%22Re%5C%3A+%5C%5Bjira%5C%5D+Commented%5C%3A+%5C%28FOR%5C-872%5C%29+Updated+odt_to_xhtml.xsl+to+pass+%3Ctitle%3E+%5C%26+%3Ch1%3E+elements.%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="#" title="p">Previous message</a></li> <li class="icons-next"><a href="msg09425.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray"></li> </ul> </div> </body> </html>