Details
Description
The following sample document is my test case:
<?xml version="1.0" encoding="UTF-8"?>
<article>
<section>
<para>Sample links
<orderedlist>
<listitem><para><ulink url="http://xml.apache.org/xalan"/></para></listitem>
<listitem><para><ulink
url="http://xml.apache.org/xalan"></ulink></para></listitem>
<listitem><para><ulink
url="http://xml.apache.org/xalan">Xalan</ulink></para></listitem>
</orderedlist>
</para>
</section>
</article>
Using Xalan-J 2.5.1 docbook 1.61.3 (the latest version) stylesheets I get
variants of the following:
<a ="" target="_top">http://xml.apache.org/xalan</a>
Basically the href attribute name and value, don't exist. If I make the
following change (remove xmlns declaration) to docbook/xhtml/xref.xsl:
748c748
< <a xmlns="http://www.w3.org/1999/xhtml">
—
> <a>
then I get a valid, with the exception of the empty xmlns attribute, 'a' element:
<a xmlns="" href="http://xml.apache.org/xalan"
target="_top">http://xml.apache.org/xalan</a>
Unfortunately the empty xmlns craps out Mozilla, but that's another bug for
another project.
Corey
Attachments
Attachments
Issue Links
- is duplicated by
-
XALANJ-2162 Default namespace corruption on result elements
- Resolved