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:%22Ross+Gardler%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Ross Gardler</span></span></a></span> <span class="date"><a href="/search?l=dev@forrest.apache.org&q=date:20060505" rel="nofollow">Fri, 05 May 2006 08:37:19 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre style="margin: 0em;"> Cyriaque Dupoirieux wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> le 05/05/2006 17:13 Ross Gardler a écrit :</pre><pre> </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> Web Maestro Clay wrote: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> On May 5, 2006, at 3:01 AM, Ross Gardler wrote: </pre></blockquote><pre style="margin: 0em;"> ... </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>In this case if the class="T1" attribute were allowed to pass </tt><tt>through, suppose I could just create a style for it in skinconf.xml. </tt><tt>Then, I don't think it would be invalid code (unless the DTD doesn't </tt><tt>allow that). We could 'pick and choose' styles that way... Any </tt><tt>styles which are not in skinconf.xml would be ignored. If we could </tt><tt>modify the pipeline to only allow styles from skinconf.xml it would </tt><tt>be all the better. </tt></blockquote><pre style="margin: 0em;"> </pre><tt>Your approach makes two assumptions, both of which are, in my opinion, </tt><tt>flawed: </tt><pre style="margin: 0em;"> 1) we know what T1 is used for by the user </pre><tt>2) we can force a predefined style on T1 and the document will still </tt><tt>look right </tt><pre style="margin: 0em;"> </pre><tt>My approach allows us to pull the style information from the OOo </tt><tt>document and therefore respect the users wishes within the confines of </tt><tt>the web designers rules. </tt><pre style="margin: 0em;"> </pre><tt>It doesn't require that much more work since it will (hopefully) only </tt><tt>be a case of copying over the code from the OOo plugin. </tt><pre style="margin: 0em;"> </pre><tt>The fact that it creates invalid XDocs is not a huge problem as it </tt><tt>only affects things on the internal side of Forrest and so validation </tt><tt>checks are not an issue (in fact the internal format is not valid in </tt><tt>many other ways too). We can return and address this at a later date. </tt></blockquote><pre style="margin: 0em;"> </pre><tt>Ross, I fully agree with you, but I have search in one of my odt files </tt><tt>with bold characters (style="T1") and I can't find the style definition </tt><tt>in the T1 style ? </tt></blockquote><pre style="margin: 0em;"> This highlights a third incorrect assumption about styles in ODT docs: </pre><tt>- there is consistency in the style names used across different ODT </tt><tt>editing environemnts </tt><pre style="margin: 0em;"> </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> It seems to be a predefined style ? </pre></blockquote><pre style="margin: 0em;"> </pre><tt>I just loooked in an ODT file for the first time and was pleasently </tt><tt>suprised to find sensible style names and not codes like "T1" as was </tt><tt>used in SXW. Perhaps the document Web Maestro Clay is referring to </tt><tt>started life as an SXW? </tt><pre style="margin: 0em;"> </pre><tt>In SXW, if I remember rifhtly, T1 was the predefined style called "Title </tt><tt> 1" in the drop down styles list. </tt><pre style="margin: 0em;"> Ross </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#09346">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#09346">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg09353.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">Ross Gardler</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg09353.html">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtm...</a></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="msg09349.html">Re: [jira] Commented: (FOR-872) Updated odt_to_xhtm...</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_...</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...</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...</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) Up...</a></span> <span class="sender italic">Web Maestro Clay</span></li> </ul></li> </ul></li> </ul></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="#" title="p">Previous message</a></li> <li class="icons-next"><a href="msg09353.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>