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:%22Clay+Leeds%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Clay Leeds</span></span></a></span> <span class="date"><a href="/search?l=dev@forrest.apache.org&q=date:20060509" rel="nofollow">Tue, 09 May 2006 20:19:59 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre style="margin: 0em;"> On May 5, 2006, at 4:58 PM, David Crossley wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> Clay Leeds (JIRA) wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt> [ <a rel="nofollow" href="http://issues.apache.org/jira/browse/FOR-872">http://issues.apache.org/jira/browse/FOR-872</a>? </tt><tt>page=comments#action_12377939 ] </tt><pre style="margin: 0em;"></pre><pre> Clay Leeds commented on FOR-872: -------------------------------- </pre><tt>Uh oh... The images don't work as well as planned. The Forrest </tt><tt>resources.xmap places them in '../images/' instead of 'images/'. </tt><tt>Since the images were placed in 'build/images/' instead of 'build/ </tt><tt>site/images/' I didn't notice the problem until I tested on a </tt><tt>separate server. </tt><pre style="margin: 0em;"> </pre><tt>BTW, we also need to ensure embedded images are placed in </tt><tt>subdirectories based on $filename (similar to how OOo plugin </tt><tt>works) to ensure embedded images from different files have a </tt><tt>unique path, to ensure integrity of the page (if two embedded </tt><tt>images are assigned the same name, then the image from the last </tt><tt>file transformed would replace earlier versions with the same name). </tt></blockquote><pre style="margin: 0em;"> There is recent discussion in the mail archives about relative paths to images. It causes the problem that you refer to. -David </pre></blockquote><pre style="margin: 0em;"> I think I found the thread[1]. But I don't think it helps much. </pre><tt>The images I'm 'referencing' are embedded in the OpenOffice.org ODT </tt><tt>files. I don't refer to them as 'images/blah.jpg'. I don't place </tt><tt>them in 'xdocs/images/' or 'resources/images/' and then reference </tt><tt>them using relative paths. I pasted the graphics into OpenOffice.org </tt><tt>files. It is the Cocoon pipeline that is copying them to build/ </tt><tt>images/ instead of build/site/images/. Cocoon copies them from their </tt><tt>embedded 'Pictures/' directory in the ODT 'zip' file to build/images/ </tt><tt>blah.jpg instead of build/site/images/blah.jpg. </tt><pre style="margin: 0em;"> </pre><tt>What I think I need to do, is modify the Cocoon pipeline to ensure </tt><tt>images are copied from {$filename/Pictures/*.jpg} them to build/site/ </tt><tt>images/*.jpg. </tt><pre style="margin: 0em;"> </pre><tt>Even better--since, as I mentioned in my post, there might be a </tt><tt>problem of having the same image name signify different images, it </tt><tt>would be best to have the pipeline copy the files (and reference </tt><tt>them!) to: build/site/images/$filename/*.jpg </tt><pre style="margin: 0em;"> [1] <a rel="nofollow" href="http://thread.gmane.org/gmane.text.xml.forrest.devel/20274/focus=20291">http://thread.gmane.org/gmane.text.xml.forrest.devel/20274/focus=20291</a> [2] <a rel="nofollow" href="http://article.gmane.org/gmane.text.xml.forrest.devel/20301">http://article.gmane.org/gmane.text.xml.forrest.devel/20301</a> Clay Leeds [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 " accesskey="p" href="msg09405.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#09406">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#09406">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg09408.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email tSliceCur"><span class="subject">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtml.xsl ...</span> <span class="sender italic">Clay Leeds</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg09408.html">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtml...</a></span> <span class="sender italic">Clay Leeds</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg09412.html">Re: [jira] Commented: (FOR-872) Updated odt_to_x...</a></span> <span class="sender italic">Ross Gardler</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg09424.html">Re: [jira] Commented: (FOR-872) Updated odt_...</a></span> <span class="sender italic">Web Maestro Clay</span></li> </ul> </ul> </ul> </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="msg09405.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg09408.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>