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

Transformer doesn't work if xsl is from DOMSource - causes exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.3
    • None
    • None
    • Operating System: Linux
      Platform: PC
    • 11888

    Description

      If I use myTransformerFactory.newTransformer(new DOMSource(xsldoc)), this causes
      an exception "javax.xml.transform.TransformerException: stylesheet requires
      attribute: version". However the XSL document does have that attribute.

      If I use StreamSource instead of DOMSource with the same xsl document, it works.

      This occurs with xalan-j 2.3.1, as well as the version which forms part of
      JDK1.4 and the version that comes with Tomcat.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramon.casha@megabyte.net Ramon Casha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: