| org.apache.cocoon.xml.AbstractXMLPipe org.apache.cocoon.woody.transformation.WidgetReplacingPipe
WidgetReplacingPipe | public class WidgetReplacingPipe extends AbstractXMLPipe (Code) | | The basic operation of this Pipe is that it replaces wt:widget (in the
Constants.WT_NS namespace) tags (having an id attribute)
by the XML representation of the corresponding widget instance.
These XML fragments (normally all in the
Constants.WI_NS "Woody Instance" namespace), can
then be translated to a HTML presentation by an XSL. This XSL will then only have to style
individual widget, and will not need to do the whole page layout.
For more information about the supported tags and their function, see the user documentation
for the woody template transformer.
version: CVS $Id: WidgetReplacingPipe.java 433543 2006-08-22 06:22:54Z crossley $ |
Inner Class :public class InsertStylingContentHandler extends AbstractXMLPipe implements Recyclable | |
Method Summary | |
public void | characters(char c, int start, int len) | public void | comment(char ch, int start, int len) | public void | endCDATA() | public void | endElement(String namespaceURI, String localName, String qName) | public void | endEntity(String name) | public void | endPrefixMapping(String prefix) | protected Widget | getWidget(Attributes attributes) | public void | ignorableWhitespace(char c, int start, int len) | public void | init(Widget newContextWidget, WoodyPipelineConfig newPipeContext) | public void | processingInstruction(String target, String data) | public void | recycle() | public void | skippedEntity(String name) | public void | startCDATA() | public void | startElement(String namespaceURI, String localName, String qName, Attributes attributes) | public void | startEntity(String name) | public void | startPrefixMapping(String prefix, String uri) |
elementNestingCounter | protected int elementNestingCounter(Code) | | Counts the element nesting.
|
gotStylingElement | protected boolean gotStylingElement(Code) | | Have we encountered a element in a widget ?
|
inWidgetElement | protected boolean inWidgetElement(Code) | | Indicates whether we're currently in a widget element.
|
namespacePrefix | protected String namespacePrefix(Code) | | Namespace prefix used for the namespace Constants.WT_NS .
|
repeaterWidget | protected boolean repeaterWidget(Code) | | Boolean indicating wether the current widget requires special repeater-treatement.
|
saxBuffer | protected SaxBuffer saxBuffer(Code) | | Buffer used to temporarily record SAX events.
|
widgetElementNesting | protected int widgetElementNesting(Code) | | Contains the value of the
WidgetReplacingPipe.elementNestingCounter on the moment the transformer
encountered a wi:widget element. Used to detect the corresponding endElement call
for the wi:widget element.
|
ignorableWhitespace | public void ignorableWhitespace(char c, int start, int len) throws SAXException(Code) | | |
recycle | public void recycle()(Code) | | |
Methods inherited from org.apache.cocoon.xml.AbstractXMLPipe | public void characters(char c, int start, int len) throws SAXException(Code)(Java Doc) public void comment(char ch, int start, int len) throws SAXException(Code)(Java Doc) public void endCDATA() throws SAXException(Code)(Java Doc) public void endDTD() throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String loc, String raw) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char c, int start, int len) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startCDATA() throws SAXException(Code)(Java Doc) public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException(Code)(Java Doc) public void startEntity(String name) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc)
|
|
|