Package org.apache.any23.extractor.rdfa
Class XSLTStylesheet
- java.lang.Object
-
- org.apache.any23.extractor.rdfa.XSLTStylesheet
-
-
Constructor Summary
Constructors Constructor Description XSLTStylesheet(InputStream xsltFile)
-
-
-
Constructor Detail
-
XSLTStylesheet
public XSLTStylesheet(InputStream xsltFile)
-
-
Method Detail
-
applyTo
public void applyTo(Document document, Writer output) throws XSLTStylesheetException
Applies the XSLT transformation- Parameters:
document
- where apply the transformationoutput
- theWriter
where write on- Throws:
XSLTStylesheetException
- if there is an error applying the transformation
-
applyTo
public void applyTo(Document document, Writer output, Map<String,String> parameters) throws XSLTStylesheetException
Applies the XSLT transformation- Parameters:
document
- where apply the transformationoutput
- theWriter
where write onparameters
- the parameters to be passed toTransformer
. Pass an emptyMap
if no parameters are foreseen.- Throws:
XSLTStylesheetException
- if there is an error applying the transformation
-
-