org.apache.cocoon.components.language.markup.sitemap
Class SitemapMarkupLanguage.PreProcessFilter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage.PreProcessFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader
Enclosing class:
SitemapMarkupLanguage

protected class SitemapMarkupLanguage.PreProcessFilter
extends org.xml.sax.helpers.XMLFilterImpl

Preprocess filter for Sitemap Markup language. It looks for PI event other that <?xml-logisheet href="..."> for quoting them; It adds creation-date, file-name and file-path attributes to the root Element; And it quotes the PCDATA based by calling the quote method of the programming language.


Field Summary
protected  org.apache.log.Logger log
           
 
Constructor Summary
SitemapMarkupLanguage.PreProcessFilter(java.lang.String filename, ProgrammingLanguage language)
           
 
Method Summary
 void processingInstruction(java.lang.String target, java.lang.String data)
           
 void setLogger(org.apache.log.Logger logger)
           
 void setParent(org.xml.sax.XMLReader reader)
           
 void startDocument()
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.log.Logger log
Constructor Detail

SitemapMarkupLanguage.PreProcessFilter

public SitemapMarkupLanguage.PreProcessFilter(java.lang.String filename,
                                              ProgrammingLanguage language)
Method Detail

setParent

public void setParent(org.xml.sax.XMLReader reader)
Overrides:
setParent in class org.xml.sax.helpers.XMLFilterImpl

setLogger

public void setLogger(org.apache.log.Logger logger)

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Overrides:
startDocument in class org.xml.sax.helpers.XMLFilterImpl

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws org.xml.sax.SAXException
Overrides:
processingInstruction in class org.xml.sax.helpers.XMLFilterImpl

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.