This class converts SAX-like event to SAX events for
xsl:output method "text".
This class is only to be used internally. This class is not a public API.
addAttribute
public void addAttribute(String uri,
String localName,
String rawName,
String type,
String value,
boolean XSLAttribute)
- addAttribute in interface org.apache.xml.serializer.ExtendedContentHandler
- addAttribute in interface SerializerBase
ExtendedContentHandler.addAttribute(String, String, String, String, String)
attributeDecl
public void attributeDecl(String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
throws SAXException
org.xml.sax.ext.DeclHandler.attributeDecl(String, String, String, String, String)
characters
public void characters(String characters)
throws SAXException
- characters in interface org.apache.xml.serializer.ExtendedContentHandler
- characters in interface ToSAXHandler
ExtendedContentHandler.characters(String)
characters
public void characters(char[] characters,
int offset,
int length)
throws SAXException
org.xml.sax.ContentHandler.characters(char[], int, int)
comment
public void comment(String data)
throws SAXException
Receive notification of a comment.
- comment in interface org.apache.xml.serializer.ExtendedLexicalHandler
- comment in interface ToSAXHandler
ExtendedLexicalHandler.comment(String)
comment
public void comment(ch[] ,
int start,
int length)
throws SAXException
elementDecl
public void elementDecl(String arg0,
String arg1)
throws SAXException
org.xml.sax.ext.DeclHandler.elementDecl(String, String)
endCDATA
public void endCDATA()
throws SAXException
org.xml.sax.ext.LexicalHandler.endCDATA()
endDTD
public void endDTD()
throws SAXException
org.xml.sax.ext.LexicalHandler.endDTD()
endDocument
public void endDocument()
throws SAXException
From XSLTC
org.xml.sax.ContentHandler.endDocument()
endElement
public void endElement(String elemName)
throws SAXException
From XSLTC
- endElement in interface org.apache.xml.serializer.ExtendedContentHandler
ExtendedContentHandler.endElement(String)
endElement
public void endElement(String arg0,
String arg1,
String arg2)
throws SAXException
org.xml.sax.ContentHandler.endElement(String, String, String)
endPrefixMapping
public void endPrefixMapping(String arg0)
throws SAXException
org.xml.sax.ContentHandler.endPrefixMapping(String)
externalEntityDecl
public void externalEntityDecl(String arg0,
String arg1,
String arg2)
throws SAXException
org.xml.sax.ext.DeclHandler.externalEntityDecl(String, String, String)
ignorableWhitespace
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws SAXException
org.xml.sax.ContentHandler.ignorableWhitespace(char[], int, int)
indent
public void indent(int n)
throws SAXException
Does nothing because
the indent attribute is ignored for text output.
internalEntityDecl
public void internalEntityDecl(String arg0,
String arg1)
throws SAXException
org.xml.sax.ext.DeclHandler.internalEntityDecl(String, String)
namespaceAfterStartElement
public void namespaceAfterStartElement(String prefix,
String uri)
throws SAXException
This method is used when a prefix/uri namespace mapping
is indicated after the element was started with a
startElement() and before and endElement().
startPrefixMapping(prefix,uri) would be used before the
startElement() call.
- namespaceAfterStartElement in interface org.apache.xml.serializer.ExtendedContentHandler
- namespaceAfterStartElement in interface SerializerBase
prefix
- the prefix associated with the given URI.uri
- the URI of the namespace
ExtendedContentHandler.namespaceAfterStartElement(String, String)
processingInstruction
public void processingInstruction(String arg0,
String arg1)
throws SAXException
From XSLTC
- processingInstruction in interface ToSAXHandler
org.xml.sax.ContentHandler.processingInstruction(String, String)
setDocumentLocator
public void setDocumentLocator(Locator arg0)
- setDocumentLocator in interface SerializerBase
org.xml.sax.ContentHandler.setDocumentLocator(Locator)
setIndent
public void setIndent(boolean indent)
- setIndent in interface org.apache.xml.serializer.XSLOutputAttributes
- setIndent in interface SerializerBase
SerializationHandler.setIndent(boolean)
skippedEntity
public void skippedEntity(String arg0)
throws SAXException
org.xml.sax.ContentHandler.skippedEntity(String)
startCDATA
public void startCDATA()
throws SAXException
org.xml.sax.ext.LexicalHandler.startCDATA()
startElement
public void startElement(String elementName)
throws SAXException
An element starts, but attributes are not fully known yet.
- startElement in interface org.apache.xml.serializer.ExtendedContentHandler
- startElement in interface ToSAXHandler
ExtendedContentHandler.startElement(String)
startElement
public void startElement(String elementNamespaceURI,
String elementLocalName,
String elementName)
throws SAXException
From XSLTC
- startElement in interface org.apache.xml.serializer.ExtendedContentHandler
- startElement in interface ToSAXHandler
ExtendedContentHandler.startElement(String)
startElement
public void startElement(String arg0,
String arg1,
String arg2,
Attributes arg3)
throws SAXException
- startElement in interface ToSAXHandler
org.xml.sax.ContentHandler.startElement(String, String, String, Attributes)
startEntity
public void startEntity(String arg0)
throws SAXException
org.xml.sax.ext.LexicalHandler.startEntity(String)
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping
public boolean startPrefixMapping(String prefix,
String uri,
boolean shouldFlush)
throws SAXException
This method is used to notify that a prefix maping is to start, which can
be for the current element, or for the one to come.
- startPrefixMapping in interface org.apache.xml.serializer.ExtendedContentHandler
prefix
- the prefix that maps to the given URIuri
- the namespace URI of the given prefixshouldFlush
- if true this call is like the SAX
startPrefixMapping(prefix,uri) call and the mapping applies to the
element to come. If false the mapping applies to the current element.
- boolean false if the prefix mapping was already in effect (in
other words we are just re-declaring), true if this is a new, never
before seen mapping for the element.