Project Documentation
Foundation

Description

This component is used to transform XML (from either a String or URL) using XSLT.

Screen Shot

Not available

API

component-family org.apache.myfaces.tomahawk.Template
component-class org.apache.myfaces.custom.template.XmlTemplate
tag-class org.apache.myfaces.custom.template.XmlTemplateTag

Usage

		
            <t:xmlTemplate  rendered="true"
                            contentLocation="org/apache/myfaces/examples/template/foo.xml"
                            stylesheetLocation="org/apache/myfaces/examples/template/foo.xsl"/>	

            

Instructions

id - defines the id of the component.
content - String containing the XML content to be transformed. It is optional.
contentLocation - String containing the location of the XML content to be transformed. It is optional.
contentStream - Value binding expression referencing an InputStream from which the XML content is to be read. It is optional.
stylesheet - String containing the XSL information to use in the transformation. It is optional.

Additional Information

see template/index.jsf in the Tomahawk examples.