Interface XSLT


public interface XSLT
  • Method Details

    • isValid

      boolean isValid() throws RaptorXMLException
      Validates the XSLT file
      Throws:
      RaptorXMLException
    • execute

      boolean execute(String outputFile) throws RaptorXMLException
      Execute and save the result to file. In case of an error, use function getLastErrorMessage() to get additional information.
      Parameters:
      outputFile - path to result file
      Returns:
      true on success, false on failure
      Throws:
      RaptorXMLException
    • executeAndGetResultAsString

      String executeAndGetResultAsString() throws RaptorXMLException
      Execute and return the result as string. In case of an error, use function getLastErrorMessage() to get additional information.
      Returns:
      result as string.
      Throws:
      RaptorXMLException
    • executeAndGetResultAsStringWithBaseOutputURI

      String executeAndGetResultAsStringWithBaseOutputURI(String baseURI) throws RaptorXMLException
      Execute and return the result as string. In case of an error, use function getLastErrorMessage() to get additional information.
      Returns:
      result as string.
      Throws:
      RaptorXMLException
    • setVersion

      void setVersion(XSLT.ENUMXSLTVersion version)
      Set the XSLT version
      Parameters:
      version - The version: 1.0, 2.0 or 3.0
    • setInputXMLFileName

      void setInputXMLFileName(String xmlFile)
      Set the file name for the XML data used as input.
      Parameters:
      xmlFile - path to XML file.
    • setXSLFileName

      void setXSLFileName(String xslFile)
      Set the file for the XSLT data.
      Parameters:
      xslFile - path to XSL file
    • setInputXMLFromText

      void setInputXMLFromText(String xmlText)
      Set the text value for the input XML data.
      Parameters:
      xmlText - XML text
    • setXSLFromText

      void setXSLFromText(String xslText)
      Set the text value
      Parameters:
      xslText - XML text
    • addExternalParameter

      void addExternalParameter(String name, String value)
      Add name and value for an external parameter.
      Parameters:
      name - a valid QName as the parameter name
      value - value for the parameter - value which will be evaluated as an xpath expression
    • clearExternalParameterList

      void clearExternalParameterList()
      Clear the list of external parameters.
    • setNamedTemplateEntryPoint

      void setNamedTemplateEntryPoint(String template)
      Set the initial template name for the transformation.
    • setInitialTemplateMode

      void setInitialTemplateMode(String mode)
      Set the initial template mode for the transformation.
    • setDotNetExtensionsEnabled

      void setDotNetExtensionsEnabled(boolean enable)
      Enable or disable the .NET extensions.
      Parameters:
      enable - 'true' to enable, 'false' otherwise
    • setJavaExtensionsEnabled

      void setJavaExtensionsEnabled(boolean enable)
      Enable or disable the Java extensions.
      Parameters:
      enable - 'true' to enable, 'false' otherwise
    • setJavaBarcodeExtensionLocation

      void setJavaBarcodeExtensionLocation(String path)
      Location of the Java Barcode extension
    • setChartExtensionsEnabled

      void setChartExtensionsEnabled(boolean enable)
      Enable or disable the chart extensions.
      Parameters:
      enable - 'true' to enable, 'false' otherwise
    • getLastErrorMessage

      String getLastErrorMessage()
      Get the last error message from the engine.
      Returns:
      last error message
    • setXSDVersion

      void setXSDVersion(XMLValidator.ENUMXSDVersion version)
      XSD specification version
      Parameters:
      version - Version to be used by the validation engine
    • setXincludeSupport

      void setXincludeSupport(boolean support)
      Enable/disable xinclude support
    • setSchemalocationHints

      void setSchemalocationHints(XMLValidator.ENUMLoadSchemalocation opt)
      Configure the usage of the xsi:schemaLocation hints
    • seSchemaImports

      void seSchemaImports(XMLValidator.ENUMSchemaImports opt)
      Configure the usage of the xsi:schemaLocation hints
    • setSchemaMapping

      void setSchemaMapping(XMLValidator.ENUMSchemaMapping opt)
      Configure the usage of the xsi:schemaLocation hints
    • setXMLValidationMode

      void setXMLValidationMode(XMLValidator.ENUMXMLValidationMode mode)
      Processing mode
      Parameters:
      mode - XML Validation mode to be used by the validation engine
    • setIndentCharacters

      void setIndentCharacters(String chars)
      Characters used for indentation.
    • setStreamingSerialization

      void setStreamingSerialization(boolean support)
      Enable/disable streaming serialization
    • setLoadXMLWithPSVI

      void setLoadXMLWithPSVI(boolean load)
      Enable/disable loading XML with PSVI
    • setXMLValidationErrorAsWarning

      void setXMLValidationErrorAsWarning(boolean treat)
      Enable/disable treating XML validation errors as warnings
    • getMainOutput

      String getMainOutput()
      Returns the main output of the last executed job
    • getAdditionalOutputs

      String getAdditionalOutputs()
      Returns the additional outputs of the last executed job