| org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.xml.AbstractXMLPipe org.apache.cocoon.xml.RedundantNamespacesFilter
RedundantNamespacesFilter | public class RedundantNamespacesFilter extends AbstractXMLPipe (Code) | | A SAX filter that strips out redundant namespace declarations.
It handles both duplicate declarations (i.e. a namespace already declared by a
parent element) and empty namespaces scopes (i.e. start/stopPrefixMapping with
no element inbetween) that can be produced by some components (e.g. JXTG or
BrowserUpdateTransformer). Such empty scopes confuse the Xalan serializer which
then produces weird namespace declarations (xmlns:%@$#^@#="%@$#^@#" ).
This is a the most simple use of
NamespacesTable .
version: CVS $Id: RedundantNamespacesFilter.java 433543 2006-08-22 06:22:54Z crossley $ |
RedundantNamespacesFilter | public RedundantNamespacesFilter()(Code) | | No-arg constructor. Requires an explicit call to
setConsumer() .
|
RedundantNamespacesFilter | public RedundantNamespacesFilter(XMLConsumer consumer)(Code) | | Creates a filter directly linked to its consumer
Parameters: consumer - the SAX stream consumer |
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)
|
|
|