DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22564>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22564 xmlns bug using docbook->xhtml xslt on ulink template Summary: xmlns bug using docbook->xhtml xslt on ulink template Product: XalanJ2 Version: 2.5 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following sample document is my test case: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD Docarticle XML V4.2//EN" "../../../../core/dtd/docbook-xml-4.2/docbookx.dtd"> <article> <title>Test</title> <section> <title>Sample</title> <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
