Re: [Refdb-users] xhtml references don't start on new line
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mar...@mh...> - 2004-03-11 18:35:39
|
David Nebauer writes:
> I have, however, noted another rendering bug: the actual references do
> not appear as hyperlinks in Firebird or Firefox.
>
> The offending xhtml fragment is:
> ........................................................................................................................
> ... quotes, such as <a xmlns="" href="#IDSavitch2001">(Savitch,
> 2001)</a> and <a xmlns="" href="#IDLamport1994">(Lamport, 1994)</a>, for
> it to work ...
> ........................................................................................................................
>
> The problem is the empty xmlns attributes. If I manually remove them,
> both browsers display the hyperlinks. If the namespace attribute is a
> legal part of the xhtml specification, then this is another problem with
> Firebird/Firefox and xhtml.
>
Now this really gets me worried. First of all, the citations in a test
document processed on my system (using xsltproc) look like this:
<p>We cite this one <a href="#IDMiller1999">
(1)</a> and <a href="#IDWalsh1999">(2)</a> and <a
href="#IDPhadke1994">(3)</a></p>
That is, there is no xmlns attribute.
Second, if you look at the xhtml stylesheets, there is no code
whatsoever to insert such an attribute. The relevant instructions that
create the links look like this:
<a href='#{$realtarget}'>
Third, if you look at the xhtml dtd, there is no such attribute at
all.
I somehow suspect that the xslt processor that you used thought it to
be a good idea to have an xmlns attribute, but I'm at a loss how this
could be suppressed.
> Almost as an afterthought, at this point I ran the original xhtml file
> through the W3C validator <http://validator.w3.org/>. It returned the
> following information:
My bad. I should have done this in the first place.
> 5. Line 5, column 2656: 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
> ^
This indicates that the refdb xhtml driver file creates invalid xhtml
output which needs to be fixed.
> Is it possible my browsers have it right after all?
>
Absolutely. I apologize for jumping the gun. I'll do my part to fix
the problem, but the xmlns thing might be out of my reach.
regards,
Markus
--
Markus Hoenicka
mar...@ca...
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de
|