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:20060505" rel="nofollow">Fri, 05 May 2006 20:18:25 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <table width="100%"><tr><td style=""><DIV><DIV>On May 5, 2006, at 8:36 AM, Ross Gardler wrote:</DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Cyriaque Dupoirieux wrote:</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">le 05/05/2006 17:13 Ross Gardler a écrit :</DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Your approach makes two assumptions, both of which are, in my opinion, flawed:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1) we know what T1 is used for by the user</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2) we can force a predefined style on T1 and the document will still look right</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">My approach allows us to pull the style information from the OOo document and therefore respect the users wishes within the confines of the web designers rules.</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Agreed. Let us proceed with your approach.</DIV><BR><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It doesn't require that much more work since it will (hopefully) only be a case of copying over the code from the OOo plugin.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The fact that it creates invalid XDocs is not a huge problem as it only affects things on the internal side of Forrest and so validation checks are not an issue (in fact the internal format is not valid in many other ways too). We can return and address this at a later date.</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>David Crossley mentioned in another thread[1], that document-v11.dtd is similar to document-v13.dtd, except:</DIV><DIV>====<DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#0000DD">Why "transform.docv10.docv11"? No problem: docv11</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ; color: rgb(0, 0, 221); "><FONT class="Apple-style-span" color="#0000DD">is essentially the same as docv13, some restrictions</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ; color: rgb(0, 0, 221); "><FONT class="Apple-style-span" color="#0000DD">were relaxed and every element can have a  @class attr.</FONT></DIV></BLOCKQUOTE></DIV><DIV>====</DIV><BR><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ross, I fully agree with you, but I have search in one of my odt files with bold characters (style="T1") and I can't find the style definition in the T1 style ?</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This highlights a third incorrect assumption about styles in ODT docs:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">- there is consistency in the style names used across different ODT editing environemnts</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It seems to be a predefined style ?</DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I just loooked in an ODT file for the first time and was pleasently suprised to find sensible style names and not codes like "T1" as was used in SXW. Perhaps the document Web Maestro Clay is referring to started life as an SXW?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">In SXW, if I remember rifhtly, T1 was the predefined style called "Title<SPAN class="Apple-converted-space">  </SPAN>1" in the drop down styles list.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ross</DIV> </BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>That is correct. This file did begin 'life' as an SXW file. I started the site for a client by copying the files into using OOo and saving them as SXW files. After getting bitten by the many bugs in OOo's SXW styling system we opted to create an ODT plugin instead of updating OOo. I'll have to go through each file and clear formatting, then reapply bold and italic where necessary.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV>[1]</DIV><DIV><A rel="nofollow" href="http://article.gmane.org/gmane.text.xml.forrest.user/3540">http://article.gmane.org/gmane.text.xml.forrest.user/3540</A><BR></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>p.s. Shouldn't this discussion be happening in JIRA?</DIV></DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Web Maestro Clay</DIV><DIV><A rel="nofollow" href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>My religion is simple. My religion is kindness.</DIV><DIV>-- HH Dalai Lama of Tibet</DIV><DIV><BR class="khtml-block-placeholder"></DIV></SPAN><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></td></tr></table> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg09424.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#09353">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#09353">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg09362.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg09349.html">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtml.xsl...</a></span> <span class="sender italic">David Crossley</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg09406.html">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtm...</a></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_...</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...</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...</a></span> <span class="sender italic">Web Maestro Clay</span></li> </ul></li> </ul></li> </ul></li> <li class="icons-email tSliceCur"><span class="subject">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtm...</span> <span class="sender italic">Web Maestro Clay</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg09362.html">Re: [jira] Commented: (FOR-872) Updated odt_to_...</a></span> <span class="sender italic">Ross Gardler</span></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg09364.html">[jira] Commented: (FOR-872) Updated odt_to_xhtml.xs...</a></span> <span class="sender italic">Clay Leeds (JIRA)</span></li> </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="msg09424.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg09362.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>