Re: [Refdb-users] xhtml references don't start on new line
Status: Beta
                
                Brought to you by:
                
                    mhoenicka
                    
                
            | 
      
      
      From: David N. <dav...@bi...> - 2004-03-11 13:05:25
      
     | 
| Hi Markus, >I'm afraid this may be a display problem of your browser. The output >looks just fine over here (Firebird 0.7 on FreeBSD). > > Have you tried xhtml output from saxon? It's a bit gruesome. Here is the result of processing my test document: ......................................................................................................................................... <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>TOC Reference List tester</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"/></head><body><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="d0e1"/>TOC Reference List tester</h2></div><div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="surname">Nebauer</span></h3><div class="affiliation"><div class="address"><p><br/> <tt xmlns:.0="" .0:class="email"><<a .0:href="mailto:dav...@bi...">dav...@bi...</a>></tt><br/> </p></div></div></div></div><div><div class="revhistory"><table border="1" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="3"><b>Revision History</b></th></tr><tr><td align="left">Revision 1</td><td align="left">2004-03-03</td><td align="left">DN</td></tr><tr><td align="left" colspan="3">Create document</td></tr></table></div></div></div><div/><hr/></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="#spurious-quotes">Some quotes</a></span></dt><dt><span class="section"><a href="#problem-statement">Statement of the problem</a></span></dt><dt><span class="bibliography"><a href="#d0e54">Reference List</a></span></dt></dl></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="spurious-quotes"/>Some quotes</h2></div></div><div/></div><p>In order to interest refdb in my document, I have to make some quotes, such as <a xmlns="" href="#IDSavitch2001">(Savitch, 2001)</a> and <a xmlns="" href="#IDLamport1994">(Lamport, 1994)</a>, for it to work on. That should suffice.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="problem-statement"/>Statement of the problem</h2></div></div><div/></div><p>Some weeks ago I decided to plunge headlong into DocBook XML. With no prior experience I immersed myself in XSLT processors, FO processors, XML, the DocBook specifications, catalogs (argh!) and, finally, refdb. As I proceeded I had a test document which steadily grew in complexity. When I reached the point of being able to ouptut pdf, I noticed something strange about the Table of Contents.</p><p>What I noticed was that there was an entry at the correct place. It gave page number and leader dots. What was absent, however, were the words "Reference List" at the start of the entry. I notified <span xmlns:.0="" .0:class="emphasis"><em>refdb-users</em></span> and continued. My test document grew increasingly more complex as I learned more. Then I saw an amazing thing. The entry had corrected itself! Yes, there was a pristine Table of Contents entry right where it should have been all along.</p><p>My current working theory is that it wil be absent in simple documents. This doument is a test of that theory. So, here goes ...</p></div><div xmlns="" id="d0e54" class="bibliography"><div xmlns="http://www.w3.org/1999/xhtml" class="titlepage"><div><div><h2 class="title"><a id="d0e54"/>Reference List</h2></div></div><div/></div><p><div id="IDLamport1994" class="bibliomixed">Lamport L., 1994, LaTeX: A Document Preparation System (Addison-Wesley, Massachusetts) </div></p><p><div id="IDSavitch2001" class="bibliomixed">Savitch W., 2001, Java. An Introduction to Computer Science and Programming (Prentice Hall, New Jersey) </div></p><p><div id="d0e185" class="bibliomixed"/></p></div></div></body></html> ......................................................................................................................................... Note the ".0"s sprinkled throughout. Here is the W3C validator's findings: ......................................................................................................................................... This page is not Valid XHTML 1.0 Transitional! Below are the results of attempting to parse this document with an SGML parser. 1. Line 5, column 18: there is no attribute "xmlns <tt xmlns:.0="" .0:class="email"><<a .0:href="mailto:davidnebauer@bigfoo ^ 2. Line 5, column 21: ".0 <tt xmlns:.0="" .0:class="email"><<a .0:href="mailto:davidnebauer@bigfoo ^ 3. Line 5, column 29: an attribute specification must start with a name or name token (explain...). <tt xmlns:.0="" .0:class="email"><<a .0:href="mailto:davidnebauer@bigfoo ^ 4. Line 5, column 45: ".0 ... xmlns:.0="" .0:class="email"><<a .0:href="mailto:dav...@bi... ^ 5. Line 5, column 52: an attribute specification must start with a name or name token (explain...). ....0="" .0:class="email"><<a .0:href="mailto:dav...@bi...">david ^ 6. Line 6, column 970: there is no attribute "xmlns" (explain...). ...o make some quotes, such as <a xmlns="" href="#IDSavitch2001">(Savitch, 2001) ^ 7. Line 6, column 1928: there is no attribute "xmlns ...of the entry. I notified <span xmlns:.0="" .0:class="emphasis"><em>refdb-use ^ 8. Line 6, column 1931: ".0 ...the entry. I notified <span xmlns:.0="" .0:class="emphasis"><em>refdb-users< ^ 9. Line 6, column 1939: an attribute specification must start with a name or name token (explain...). ...y. I notified <span xmlns:.0="" .0:class="emphasis"><em>refdb-users</em></sp ^ 10. Line 6, column 2374: there is no attribute "xmlns" (explain...). ...ry. So, here goes ?</p></div><div xmlns="" id="d0e54" class="bibliography" ^ 11. Line 6, column 2504: ID "d0e54" already defined (explain...). ...lepage"><div><div><h2 class="title"><a id="d0e54"/>Reference List</h2></div>< ^ 12. Line 6, column 2381: ID "d0e54" first defined here (explain...). ..., here goes ?</p></div><div xmlns="" id="d0e54" class="bibliography"><div x ^ 13. Line 6, column 2601: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag ...<div id="IDLamport1994" class="bibliomixed">Lamport L., 1994, LaTeX: A Docume ^ 14. Line 6, column 2745: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag ...<div id="IDSavitch2001" class="bibliomixed">Savitch W., 2001, Java. An Introd ^ 15. Line 6, column 2900: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag .../p><p><div id="d0e185" class="bibliomixed"/></p></div></div></body></html> ^ ......................................................................................................................................... Note: Saxon continues to produce pristine HTML and PDF. Xalan gives similar results to xsltproc. I've no idea what it means, but Saxon's output may give a clue to what is happening with xhtml translation generally. Regards, David. |