Class XsltAttributeExtension

java.lang.Object
org.faceless.publisher.ext.XsltAttributeExtension
All Implemented Interfaces:
ReportFactoryExtension

public class XsltAttributeExtension extends Object implements ReportFactoryExtension
A ReportFactoryExtension that will apply the XSLT stylesheet referenced by the "bfo:xslt" attribute on any element, to that element.
  • 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 by setExceptionsAreFatal(boolean) method
    • setAttribute

      public void setAttribute(String namespace, String name)
      Set the attribute which specifies the XSLT stylesheet to specify. By default it is the "xslt" attribute in the standard BFO namespace
    • getNamespace

      public String getNamespace()
      Return the namespace of the attribute which specifies the XSLT stylesheet, as set by setAttribute(java.lang.String, java.lang.String)
    • getName

      public String getName()
      Return the namespace of the attribute which specifies the XSLT stylesheet, as set by setAttribute(java.lang.String, java.lang.String)
    • configure

      public void configure(Json json)
      Description copied from interface: ReportFactoryExtension
      Configure 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:
      configure in interface ReportFactoryExtension