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

Case of doctype definiton wrong

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment