@NotThreadSafe public class SchematronProviderXSLTFromSCH extends Object implements ISchematronXSLTBasedProvider
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMATRON_DIRECTORY_XSLT2
The classpath directory where the Schematron 2 XSLT files reside.
|
static String |
XSLT2_STEP1
The class path to first XSLT to be applied.
|
static String |
XSLT2_STEP2
The class path to second XSLT to be applied.
|
static String |
XSLT2_STEP3
The class path to third and last XSLT to be applied.
|
Constructor and Description |
---|
SchematronProviderXSLTFromSCH(com.helger.commons.io.resource.IReadableResource aSchematronResource,
SCHTransformerCustomizer aTransformerCustomizer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
cacheXSLTTemplates() |
static File |
getIntermediateFinalXSLTFolder() |
static File |
getIntermediateMinifiedSCHFolder() |
com.helger.commons.io.resource.IReadableResource |
getSchematronResource() |
Document |
getXSLTDocument() |
Transformer |
getXSLTTransformer() |
static boolean |
isSaveIntermediateFiles() |
boolean |
isValidSchematron() |
static void |
setIntermediateFinalXSLTFolder(File aIntermediateFinalXSLTFolder) |
static void |
setIntermediateMinifiedSCHFolder(File aIntermediateMinifiedSCHFolder) |
static void |
setSaveIntermediateFiles(boolean bSaveIntermediateFiles) |
public static final String SCHEMATRON_DIRECTORY_XSLT2
public static final String XSLT2_STEP1
public static final String XSLT2_STEP2
public static final String XSLT2_STEP3
public SchematronProviderXSLTFromSCH(@Nonnull com.helger.commons.io.resource.IReadableResource aSchematronResource, @Nonnull SCHTransformerCustomizer aTransformerCustomizer)
aSchematronResource
- SCH resourceaTransformerCustomizer
- The customizer for XSLT Transformer
objects. May not be
null
.public static final boolean isSaveIntermediateFiles()
public static final void setSaveIntermediateFiles(boolean bSaveIntermediateFiles)
@Nonnull public static final File getIntermediateMinifiedSCHFolder()
public static final void setIntermediateMinifiedSCHFolder(@Nonnull File aIntermediateMinifiedSCHFolder)
public static final void setIntermediateFinalXSLTFolder(@Nonnull File aIntermediateFinalXSLTFolder)
public static void cacheXSLTTemplates()
@Nonnull public com.helger.commons.io.resource.IReadableResource getSchematronResource()
public boolean isValidSchematron()
isValidSchematron
in interface ISchematronXSLTBasedProvider
true
if the Schematron was successfully interpreted,
false
otherwise.@Nullable public Document getXSLTDocument()
getXSLTDocument
in interface ISchematronXSLTBasedProvider
null
if preprocessing failed.ISchematronXSLTBasedProvider.isValidSchematron()
@Nullable public Transformer getXSLTTransformer() throws TransformerConfigurationException
getXSLTTransformer
in interface ISchematronXSLTBasedProvider
null
if the
compilation of the XSLT failed.TransformerConfigurationException
- In case of an internal errorCopyright © 2014–2016 Philip Helger. All rights reserved.