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 TypeMethodDescriptionvoidconfigure(Json json) Configure the extension.getName()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)booleanReturn the value of the flag set bysetExceptionsAreFatal(boolean)methodvoidsetAttribute(String namespace, String name) Set the attribute which specifies the XSLT stylesheet to specify.voidsetExceptionsAreFatal(boolean fatal) Determine whether any XSLT exceptions are considered fatal - for example, missing or invalid XSL stylesheets.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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. -
isExceptionsAreFatal
public boolean isExceptionsAreFatal()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) -
configure
public void configure(Json json) Description copied from interface:ReportFactoryExtensionConfigure the extension. This method will be called by the web-service immediately after the extension is added, to pass in any parameters set by the user. The default implementation does nothing- Specified by:
configurein interfaceReportFactoryExtension
-