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

TransformerIdentityImpl outputs invalid entity declarations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • Xalan
    • None

    Description

      Using the TransformerIdentityImpl to transform something like:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title>title</title>
      </head>
      <body>
      <p>Some text here is ok</p>
      </body>
      </html>

      Results in output that contains invalid entity declarations.

      Example:

      <!ENTITY %HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" >

      I believe there is a space missing between the '%' and the 'HTML' and this is causing xml validation to fail.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mstrauch Mike Strauch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: