Package org.mycore.frontend.xeditor
Class MCRPostProcessorXSL
java.lang.Object
org.mycore.frontend.xeditor.MCRPostProcessorXSL
- All Implemented Interfaces:
MCRXEditorPostProcessor
PostProcessor for MyCoRe editor framework
that allows execution of XSLT stylesheets after an editor is closed
<xed:post-processor class="org.mycore.frontend.xeditor.MCRPostProcessorXSL"
xsl="editor/ir_xeditor2mods.xsl" transformer="saxon" />
You can specify with param xsl the stylesheet, which should be processed and
you can specify with parm transformer the XSLStylesheetProcessor ('xalan' or 'saxon').
If no transformer is specified the default transformer will be used
(property: MCR.LayoutService.TransformerFactoryClass).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDo the post processing.void
setAttributes
(Map<String, String> attributeMap) Will be called beforeMCRXEditorPostProcessor.process(Document)
.void
setStylesheet
(String stylesheet)
-
Constructor Details
-
MCRPostProcessorXSL
public MCRPostProcessorXSL()
-
-
Method Details
-
process
Description copied from interface:MCRXEditorPostProcessor
Do the post processing.- Specified by:
process
in interfaceMCRXEditorPostProcessor
- Parameters:
xml
- the document which has to be post processed- Returns:
- the post processed document
- Throws:
IOException
JDOMException
SAXException
-
setAttributes
Description copied from interface:MCRXEditorPostProcessor
Will be called beforeMCRXEditorPostProcessor.process(Document)
.- Specified by:
setAttributes
in interfaceMCRXEditorPostProcessor
- Parameters:
attributeMap
- a map which contains the name(key) and value of attributes of the postprocessor element.
-
setStylesheet
-