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

XSLT Error (javax.xml.transform.TransformerConfigurationException): Could not load the translet class

    Details

    • Bugzilla Id:
      20470

      Description

      I am using XSLTC with TraX API. When my XSL size grows bigger, I get an error
      as below while getting new Transformer from the Templates.

      -----------------------------------------------------------------------------
      javax.xml.transform.TransformerConfigurationException: Could not load the
      translet class 'Big'.
      at org.apache.xalan.xsltc.trax.TemplatesImpl.defineTransletClasses
      (TemplatesImpl.java:311)
      at org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance
      (TemplatesImpl.java:329)
      at org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer
      (TemplatesImpl.java:366)
      at prj_translet.JAXPTransletMultipleTransformations.doTransform
      (JAXPTransletMultipleTransformations.java:28)
      at prj_translet.JAXPTransletMultipleTransformations.main
      (JAXPTransletMultipleTransformations.java:79)
      ---------------------------------------------------------------------------

      I could reproduce this problem with "org.apache.xalan.xslt.Process -XSLTC".

      java -Xss100m -Xms128m -Xmx256m -
      Xbootclasspath/p:.;xalan.jar;xercesImpl.jar;xml-apis.jar;
      org.apache.xalan.xslt.Process -XSLTC -in todo.xml -xsl Big.txt -out
      OutForBig.html

      The XSL that I am using can be found here
      http://www.geocities.com/ial7158/Big.txt

      The java program that I used can be found here:
      http://www.geocities.com/ial7158/JAXPTransletMultipleTransformations.java

      With Regards
      Palanisamy
      Palanisamy_Gounder@stercomm.com

        Attachments

        1. Big.xsl
          100 kB
          Palanisamy Gounder
        2. TestXSLTC.java
          2 kB
          Palanisamy Gounder
        3. input.xml
          9 kB
          Palanisamy Gounder

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              palanisamy_gounder@stercomm.com Palanisamy Gounder
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: