Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1640

xmlns bug using docbook->xhtml xslt on ulink template

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.7
    • Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Operating System: Linux
      Platform: PC
    • PatchAvailable

    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

        1. d22564.out
          0.1 kB
          Henry Zongaro
        2. d22564.xml
          0.0 kB
          Henry Zongaro
        3. d22564.xsl
          0.4 kB
          Henry Zongaro
        4. d22564.patch.txt
          1 kB
          Henry Zongaro

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cj@syntheticplayground.com Corey Jewett
              Brian Minchau Brian Minchau
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: