| org.apache.cocoon.portal.transformation.AbstractCopletTransformer org.apache.cocoon.portal.transformation.NewEventLinkTransformer
NewEventLinkTransformer | public class NewEventLinkTransformer extends AbstractCopletTransformer (Code) | | This transformer is used to replace links (URIs) from elements
like <a href="URI"> or <form action="URI"> with portal
event uris. Therefore the transformer searches for <eventlink>
elements replaces the URI form the attribute which is specified within
an attribute called "attribute" and renames the element as specified
within an attribute called "element".
Example:
<root xmlns:ev="http://apache.org/cocoon/portal/eventlink/1.0">
<ev:eventlink href="http://eventlinkexample" element="a" attribute="href">linktext</ev:eventlink>
</root>
will be replaced with something like:
<root>
<a href="portal?cocoon-portal-event=8">linktext</a>
</root>
The transformer will create two CopletLinkEvents and insert corresponding links
to them to the XML instead of "http://eventlinkexample". If such a link is pressed
the corresponding CopletLinkEvent is sent to the Subscribers to be handled.
Please see also the documentation of superclass AbstractCopletTransformer for how
the coplet instance data are acquired.
author: Gernot Koller version: CVS $Id: NewEventLinkTransformer.java 572748 2007-09-04 17:35:19Z cziegeler $ |
ATTRIBUTE_ATTR | final public static String ATTRIBUTE_ATTR(Code) | | An attribute's name of EVENT_ELEMENT.
|
ELEMENT_ATTR | final public static String ELEMENT_ATTR(Code) | | An attribute's name of EVENT_ELEMENT.
|
EVENT_ELEM | final public static String EVENT_ELEM(Code) | | The XML element name to listen for.
|
NAMESPACE_URI | final public static String NAMESPACE_URI(Code) | | The namespace URI to listen for.
|
|
|