Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.util
Class XSLTTransformer

    java.lang.Object
      uchicago.src.sim.util.XSLTTransformer

    public class XSLTTransformer

extends java.lang.Object

Class used to transform xml documents using XSLT. This is used to convert xml batch parameter files to the default repast batch parameter file format.

Version:
  $Revision: 1.2 $ $Date: 2005/08/12 16:13:29 $
Author:
  Jerry Vos

Method Summary
`static java.lang.String` | `transform(java.io.InputStream xsltFile, java.io.InputStream xmlFileToTransform, java.lang.String outputFileName)` Transforms a given xml file using a given XSLT translation file, writing the result to a given output file.
`static java.lang.String` | `transform(java.lang.String xsltFileName, java.lang.String xmlFileToTransformName, java.lang.String outputFileName)` Transforms a given xml file using a given XSLT translation file, writing the result to a given output file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### transform

    public static java.lang.String transform(java.lang.String xsltFileName,
                                             java.lang.String xmlFileToTransformName,
                                             java.lang.String outputFileName)

  Transforms a given xml file using a given XSLT translation file, writing the result to a given output file.

  Parameters:
    `xsltFileName` - the name of the XSLT translation file
    `xmlFileToTransformName` - the name of the xml file to translate
    `outputFileName` - the name of file to write to (can be null, in which case a temporary file is used)
  Returns:
    the name of the output file

### transform

    public static java.lang.String transform(java.io.InputStream xsltFile,
                                             java.io.InputStream xmlFileToTransform,
                                             java.lang.String outputFileName)

  Transforms a given xml file using a given XSLT translation file, writing the result to a given output file.

  Parameters:
    `xsltFileName` - the XSLT translation file
    `xmlFileToTransformName` - the xml file to translate
    `outputFileName` - the name of file to write to (can be null, in which case a temporary file is used)
  Returns:
    the name of the output file

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD