You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/09/04 16:19:18 UTC

DO NOT REPLY [Bug 22933] New: - TransformerFactory ignores attribute: "auto-translet" and "use-classpath" causes an exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22933

TransformerFactory ignores attribute: "auto-translet" and "use-classpath" causes an exception

           Summary: TransformerFactory ignores attribute: "auto-translet"
                    and "use-classpath" causes an exception
           Product: XalanJ2
           Version: 2.5
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: javax.xml
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: daniel.pfeifer@tradedoubler.com


The XSLTC documentation states that the attribute auto-translet creates a new 
translet class if the XSL timestamp has changed. This is unfortunately not the 
case. The attribute is ignored and the translet does not reflect the changes in 
the XSL file. The InvalidAttributeException is not thrown.

  TransformerFactory tf = TransformerFactory.newInstance();
  tf.setAttribute("translet-name", className);
  tf.setAttribute("destination-directory", transletPath);
  tf.setAttribute("package-name", "org.danielp.beta.infolist.translet");
  tf.setAttribute("generate-translet", Boolean.TRUE);
  //tf.setAttribute("use-classpath", Boolean.TRUE);
  tf.setAttribute("auto-translet", Boolean.TRUE);

Additionally the use-classpath attribute throws an exception if used if the 
translet does not exists. The documentation does not give the impression that 
this behaviour is to be expected.