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

Case of doctype definiton wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.7
    • transformation
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • PatchAvailable

    Description

      I noticed this when I validated an XHTML document I'd created from a XALAN transformation. When I have the following output method in my XSLT -

      <xsl:output
      method="html"
      doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
      encoding="UTF-8"
      indent="yes"
      media-type="text/html"
      standalone="yes"
      />

      The following doctype definition is produced -

      It should be this (notice the lowercase html) -

      That means the document fails validation on the W3C site.

      Attachments

        1. HTML2html.patch.txt
          0.7 kB
          Brian Minchau

        Activity

          People

            minchau@ca.ibm.com Brian Minchau
            fraser_crichton Fraser Crichton
            Joanne Tong Joanne Tong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: