Package org.apache.xalan.xsltc.compiler

Examples of org.apache.xalan.xsltc.compiler.XSLTC.compile()


  String transletName = stylesheetName.substring(0,index);
  boolean isSuccessful = true;
  try {
      File file = new File(stylesheetName);
      URL url = file.toURL();
      isSuccessful = xsltc.compile(url);
  } catch (MalformedURLException e) {
      throw new TransformerConfigurationException(
    "URL for stylesheet '" + stylesheetName +
    "' can not be formed.");
  }
View Full Code Here


  }
  else {
      XSLTC xsltc = new XSLTC();

      xsltc.init();
      xsltc.compile(new URL(stylesheetName));
      out.println("<h1>Compilation successful</h1>");
      out.println("The stylesheet was compiled into the translet "+
      "class "+xsltc.getClassName() + " and is now "+
      "available for transformations on this server.");
  }
View Full Code Here

        outputType = XSLTC.BYTEARRAY_AND_FILE_OUTPUT;
  }

  // Compile the stylesheet
  final InputSource input = Util.getInputSource(xsltc, source);
  byte[][] bytecodes = xsltc.compile(null, input, outputType);
  final String transletName = xsltc.getClassName();

  // Output to the jar file if the jar file name is set.
  if ((_generateTranslet || _autoTranslet)
       && bytecodes != null && _jarFileName != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.