| org.apache.cocoon.portal.transformation.AbstractCopletTransformer org.apache.cocoon.portal.transformation.EventLinkTransformer
EventLinkTransformer | public class EventLinkTransformer extends AbstractCopletTransformer (Code) | | This transformer searches for event descriptions in the XML.
For each one an event is created and the event link is inserted into the XML
instead of the description.
Example:
<root xmlns:event="http://apache.org/cocoon/portal/eventlink/1.0">
<event:event attribute="href">
<a href="http://eventlinkexample"/>
</event:event>
<event:event element="uri">
<link><uri>http://eventlinkexample</uri></link>
</event:event>
</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: Björn Lütkemeier version: $Id: EventLinkTransformer.java 433543 2006-08-22 06:22:54Z crossley $ |
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.
|
recycle | public void recycle()(Code) | | Overridden from superclass.
|
|
|