<div class="gmail_quote">On Thu, Jan 20, 2011 at 6:06 PM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 20 Jan, 11:57 pm, <a href="mailto:screwtape@froup.com">screwtape@froup.com</a> wrote:<br>
&gt;On Thu, Jan 20, 2011 at 05:22:55PM -0600, Kevin Horn wrote:<br>
&gt;&gt;Hmmm...yes, I think it does.  It looks like the l2s_builder script is<br>
&gt;&gt;choking on fetching the DTD for some reason.  lore2sphinx itself is<br>
&gt;&gt;supposed<br>
&gt;&gt;to cache the DTD between runs, but I&#39;m betting it doesn&#39;t work in the<br>
&gt;&gt;buildbot due to the (hopefully) clean environment it has every time it<br>
&gt;&gt;runs.<br>
&gt;&gt;<br>
&gt;&gt;I can change it to not care about that, but if I do, then it won&#39;t be<br>
&gt;&gt;able<br>
&gt;&gt;to resolve HTML entities (of which there are a few in the Lore<br>
&gt;&gt;sources,<br>
&gt;&gt;mostly em-dashes IIRC).<br>
&gt;<br>
&gt;You mean these DTDs?<br>
&gt;<br>
&gt;    twisted/lore/xhtml1-strict.dtd<br>
&gt;    twisted/lore/xhtml1-transitional.dtd<br>
&gt;<br>
&gt;They reference the xhtml-*.ent entity definitions which are also in the<br>
&gt;same directory. It would be neat if lore2sphinx could be taught to use<br>
&gt;the DTDs packaged with lore instead of having to download them from the<br>
&gt;Internet every time.<br>
<br>
</div>It could even use Lore&#39;s parser, twisted.lore.tree.parseFileAndReport ;)<br>
<br>
Jean-Paul<br>
<br></blockquote><div> </div></div>Yes, but:<br><br>- The docs (well, docstrings) aren&#39;t very clear about exactly what that does, or what quirks it might or might not have. <br>- Is the DOM document it returns a typical XHTML DOM document?  Is there anything special/different about it since it&#39;s a Lore XHTML doc?<br>
- Consider the number of tickets open involving Lore&#39;s parser (or at least there were several when I started this whole business).<br>- The whole point of this project is to stop using (and by extension supporting/maintaining) Lore, so it seems kind of backwards to me to depend on it.<br>
- I&#39;d rather deal with an etree-a-like, than a straight DOM document (admittedly, personal preference)<br>- I certainly don&#39;t want to rewrite everything at this point ;)<br><br>Kevin Horn<br>