Stylesheet

Stylesheet bean attributes

A Stylesheet is created using a Spring bean with the following attributes:

Attribute Value Description
id User-defined A unique ID for the bean.
parent xml.transform.stylesheet.abstract The parent bean.

Stylesheet bean properties

The Stylesheet bean takes the following properties:

Property Type Mandatory Description
stylesheetUri String Required URI of the XSLT stylesheet to be executed.
resolveExternalEntities Boolean Optional Set to true if external entities are to be resolved, otherwise false. If not specified, the default value is false.

Stylesheet bean example

<bean id="stylesheet.dita.set-navtitle" parent="xml.transform.stylesheet.abstract">
  <property name="stylesheetUri" value="classpath:/com/componize/samples/18-stylesheet-action-executer/set-navtitle.xsl" />
  <property name="resolveExternalEntities" value="false" />
</bean>

Debugging

To debug your Stylesheet, add the following entry to your log4j.properties file:

log4j.logger.com.componize.xml.transform=debug