[ http://issues.apache.org/jira/browse/XALANJ-1640?page=history ]

Henry Zongaro updated XALANJ-1640:
----------------------------------

    Attachment: d22564.xsl
                d22564.xml
                d22564.out

Attaching reduced stylesheet (d22564.xsl) and input document (d22564.xml) that 
demonstrate the problem, along with expected output (d22564.out).

> xmlns bug using docbook->xhtml xslt on ulink template
> -----------------------------------------------------
>
>          Key: XALANJ-1640
>          URL: http://issues.apache.org/jira/browse/XALANJ-1640
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.5
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: Corey Jewett
>     Assignee: Xalan Developers Mailing List
>  Attachments: d22564.out, d22564.xml, d22564.xsl
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to