Package org.faceless.publisher.ext
Class XsltAttributeExtension
java.lang.Object
org.faceless.publisher.ext.XsltAttributeExtension
- All Implemented Interfaces:
ReportFactoryExtension
A ReportFactoryExtension that will apply the XSLT stylesheet
referenced by the "bfo:xslt" attribute on any element,
to that element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the value of the flag set bysetExceptionsAreFatal(boolean)
methodgetName()
Return the namespace of the attribute which specifies the XSLT stylesheet, as set bysetAttribute(java.lang.String, java.lang.String)
Return the namespace of the attribute which specifies the XSLT stylesheet, as set bysetAttribute(java.lang.String, java.lang.String)
void
setAttribute
(String namespace, String name) Set the attribute which specifies the XSLT stylesheet to specify.void
setExceptionsAreFatal
(boolean fatal) Determine whether any XSLT exceptions are considered fatal - for example, missing or invalid XSL stylesheets.void
startDocument
(XMLParser.Context ctx) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.faceless.publisher.ext.ReportFactoryExtension
load, register, register, unregister, unregister
-
Constructor Details
-
XsltAttributeExtension
public XsltAttributeExtension()
-
-
Method Details
-
setExceptionsAreFatal
public void setExceptionsAreFatal(boolean fatal) Determine whether any XSLT exceptions are considered fatal - for example, missing or invalid XSL stylesheets. By default they are, and will be thrown as a SAXException if they occur while parsing. If set to false, a warning will be emitted and the parse will continue as if no transformation was specified. -
getExceptionsAreFatal
public boolean getExceptionsAreFatal()Return the value of the flag set bysetExceptionsAreFatal(boolean)
method -
setAttribute
Set the attribute which specifies the XSLT stylesheet to specify. By default it is the "xslt" attribute in the standard BFO namespace -
getNamespace
Return the namespace of the attribute which specifies the XSLT stylesheet, as set bysetAttribute(java.lang.String, java.lang.String)
-
getName
Return the namespace of the attribute which specifies the XSLT stylesheet, as set bysetAttribute(java.lang.String, java.lang.String)
-
startDocument
public void startDocument(XMLParser.Context ctx) - Specified by:
startDocument
in interfaceReportFactoryExtension
-