org.apache.any23.extractor.rdfa
Class XSLTStylesheet
java.lang.Object
org.apache.any23.extractor.rdfa.XSLTStylesheet
public class XSLTStylesheet
- extends Object
An XSLT stylesheet loaded from an InputStream, can be applied
to DOM trees and writes the result to a Writer
.
- Author:
- Gabriele Renzi, Richard Cyganiak (richard@cyganiak.de)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSLTStylesheet
public XSLTStylesheet(InputStream xsltFile)
applyTo
public void applyTo(Document document,
Writer output)
throws XSLTStylesheetException
- Applies the XSLT transformation
- Parameters:
document
- where apply the transformationoutput
- the Writer
where write on
- Throws:
XSLTStylesheetException
applyTo
public void applyTo(Document document,
Writer output,
Map<String,String> parameters)
throws XSLTStylesheetException
- Applies the XSLT transformation
- Parameters:
document
- where apply the transformationoutput
- the Writer
where write onparameters
- the parameters to be passed to Transformer
.
Pass an empty Map
if no parameters are foreseen.
- Throws:
XSLTStylesheetException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.