org.weborganic.schematron
Class Schematron

java.lang.Object
  extended by org.weborganic.schematron.Schematron

Deprecated.

@Deprecated
public final class Schematron
extends Object

An Ant task that allows user to validate a fileset of XML files with a Schematron schema. Functional specifications The schematron ant task should process the file(s) specified by the user either directly or using

All arguments should be properly parsed using Ant methods so that Ant arguments and concept can be specified. The configuration of the XSLT transformer should be inherited from the JAXP properties.


Constructor Summary
Schematron()
          Deprecated.  
 
Method Summary
 void execute()
          Deprecated. Executes this task.
 void setarchiveDirParameter(String value)
          Deprecated. Pass the directory name of the current processed file as a xsl parameter to the transformation.
 void setArchiveNameParameter(String value)
          Deprecated. Pass the filename of the current processed file as a xsl parameter to the transformation.
 void setCatalog(String data)
          Deprecated. Specifies a semicolon separated list of catalog files
 void setDebugMode(boolean debug)
          Deprecated. Specify whether preprocessor stylesheet are to be print into file for debugging.
 void setFailOnError(boolean fail)
          Deprecated. Specify how parser error are to be handled.
 void setFile(File file)
          Deprecated. Specify the file to be checked; optional.
 void setFileDirParameter(String value)
          Deprecated. Pass the directory name of the current processed file as a xsl parameter to the transformation.
 void setFileNameParameter(String value)
          Deprecated. Pass the filename of the current processed file as a xsl parameter to the transformation.
 void setOutputDir(String outputDir)
          Deprecated. Specify the path to the directory where the output file should be stored.
 void setOutputEncoding(String value)
          Deprecated. Set the encoding to be used.
 void setOutputFilename(String outputFilename)
          Deprecated. Specify the name of the file where the results will be stored.
 void setQueryLanguageBinding(String binding)
          Deprecated. Specify which binding to use "xslt1", "xslt2"
 void setSchema(File file)
          Deprecated. Specify the file to be checked; optional.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schematron

public Schematron()
Deprecated. 
Method Detail

setFailOnError

public void setFailOnError(boolean fail)
Deprecated. 
Specify how parser error are to be handled. Optional, default is true. If set to true (default), throws a buildException if the parser yields an error.

Parameters:
fail - if set to false do not fail on error

setQueryLanguageBinding

public void setQueryLanguageBinding(String binding)
Deprecated. 
Specify which binding to use "xslt1", "xslt2"

Parameters:
binding -

setDebugMode

public void setDebugMode(boolean debug)
Deprecated. 
Specify whether preprocessor stylesheet are to be print into file for debugging.

Optional, default is false.

If set to true output preprocessing stylesheet into file debug.xslt

Parameters:
debug - if set to false do not output preprocessing stylesheet to file.

setSchema

public void setSchema(File file)
Deprecated. 
Specify the file to be checked; optional.

Parameters:
file - The file to check

setFile

public void setFile(File file)
Deprecated. 
Specify the file to be checked; optional.

Parameters:
file - The file to check

setOutputDir

public void setOutputDir(String outputDir)
Deprecated. 
Specify the path to the directory where the output file should be stored. Optional, default is the current directory.

Parameters:
outputDir - the path to the directory where the output file should be stored.

setOutputFilename

public void setOutputFilename(String outputFilename)
Deprecated. 
Specify the name of the file where the results will be stored. Optional, default is result.xml.

Parameters:
outputFilename - the name of the file where the results will be stored.

setCatalog

public void setCatalog(String data)
Deprecated. 
Specifies a semicolon separated list of catalog files


setFileNameParameter

public void setFileNameParameter(String value)
Deprecated. 
Pass the filename of the current processed file as a xsl parameter to the transformation. This value sets the name of that xsl parameter.

Parameters:
value - fileNameParameter name of the xsl parameter retrieving the current file name

setFileDirParameter

public void setFileDirParameter(String value)
Deprecated. 
Pass the directory name of the current processed file as a xsl parameter to the transformation. This value sets the name of that xsl parameter.

Parameters:
value - fileDirParameter name of the xsl parameter retrieving the current file directory

setArchiveNameParameter

public void setArchiveNameParameter(String value)
Deprecated. 
Pass the filename of the current processed file as a xsl parameter to the transformation. This value sets the name of that xsl parameter.

Parameters:
value - archiveNameParameter name of the xsl parameter retrieving the current file name

setarchiveDirParameter

public void setarchiveDirParameter(String value)
Deprecated. 
Pass the directory name of the current processed file as a xsl parameter to the transformation. This value sets the name of that xsl parameter.

Parameters:
value - archiveDirParameter name of the xsl parameter retrieving the current file directory

setOutputEncoding

public void setOutputEncoding(String value)
Deprecated. 
Set the encoding to be used. This is hardcoded into the output element of the final XSLT, and passed to the metastylesheet using the output-encoding parameter.


execute

public void execute()
             throws SchematronException
Deprecated. 
Executes this task. This method will: 1. Produce the Templates instances a. Locate the schema file in file system b. Locate the skeleton file in classpath c. Transform the source schema with the skeleton d. Parse the output of the transformation as Template instances e. Store for reuse f. Optionally, save as file in file system for debugging 2. Process the XML files a. Locate each source XML file to validate b. Transform each file with the generated templates c. Capture the output and messages in the Ant/standard output Note: 'Locate' means that the value and fileset from Ant may need to be parsed/processed so that each file can be found an checked prior to processing.

Throws:
BuildException - Should an error occur
SchematronException