Package org.appng.api

Interface XMLTaglet

  • All Known Subinterfaces:
    GlobalXMLTaglet

    public interface XMLTaglet
    Similar to a Taglet, a XMLTaglet can be used inside a JSP-Page to embed (static or dynamic) content that is retrieved from a Application. But instead of returning a String directly, XMLTaglet returns a DataContainer, which usually is being marshaled to XML and then processed with an XSL stylesheet. Therefore, the taglet-attribute xsl should contain the site-relative path to a XSL-stylesheet. This stylesheet is then being used to transform the XML.
    Example (method refers to bean name of the implementing class):
     <%@taglib uri="http://appng.org/tags" prefix="appNG" %>
     
     <appNG:taglet application="application-name" method="taglet-name" type="xml">
         <param:xsl>meta/xsl/stylesheet.xsl</param:xsl>
     </appNG:taglet>
     
    Author:
    Matthias Herlitzius
    See Also:
    Taglet