@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()
Deprecated.
|
static File |
getIntermediateMinifiedSCHFolder()
Deprecated.
|
com.helger.commons.io.resource.IReadableResource |
getSchematronResource() |
Document |
getXSLTDocument() |
Transformer |
getXSLTTransformer() |
static boolean |
isSaveIntermediateFiles()
Deprecated.
|
boolean |
isValidSchematron() |
static void |
setIntermediateFinalXSLTFolder(File aIntermediateFinalXSLTFolder)
Deprecated.
|
static void |
setIntermediateMinifiedSCHFolder(File aIntermediateMinifiedSCHFolder)
Deprecated.
|
static void |
setSaveIntermediateFiles(boolean bSaveIntermediateFiles)
Deprecated.
|
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
.@Deprecated public static final boolean isSaveIntermediateFiles()
@Deprecated public static final void setSaveIntermediateFiles(boolean bSaveIntermediateFiles)
@Nonnull @Deprecated public static final File getIntermediateMinifiedSCHFolder()
@Deprecated public static final void setIntermediateMinifiedSCHFolder(@Nonnull File aIntermediateMinifiedSCHFolder)
@Nonnull @Deprecated public static final File getIntermediateFinalXSLTFolder()
@Deprecated 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–2019 Philip Helger. All rights reserved.