com.jclark.xsl.sax2

Class MultiNamespaceResult

Implemented Interfaces:
Attributes, Result

public class MultiNamespaceResult
extends ResultBase

Field Summary

Fields inherited from class com.jclark.xsl.sax2.ResultBase

_errorHandler, _outputMethodHandler

Constructor Summary

MultiNamespaceResult(ContentHandler contentHandler, ErrorHandler errorHandler)
MultiNamespaceResult(OutputMethodHandler outputMethodHandler, ErrorHandler errorHandler)

Method Summary

Result
createResult(String uri)
Create a Result that can write to the given uri.
protected void
endElementContent(Name elementType)
int
getLength()
String
getQName(int i)
String
getValue(int i)
void
resultTreeFragment(ResultTreeFragment frag)
protected void
startElementContent(Name elementType, NamespacePrefixMap map)

Methods inherited from class com.jclark.xsl.sax2.ResultBase

attribute, characters, comment, end, endElement, endElementContent, flush, getAttributeName, getContentHandler, getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, grow, grow, message, processingInstruction, rawCharacters, resultTreeFragment, setOutputMethod, start, startElement, startElementContent, throwXSLException

Constructor Details

MultiNamespaceResult

public MultiNamespaceResult(ContentHandler contentHandler,
                            ErrorHandler errorHandler)

MultiNamespaceResult

public MultiNamespaceResult(OutputMethodHandler outputMethodHandler,
                            ErrorHandler errorHandler)

Method Details

createResult

public Result createResult(String uri)
            throws XSLException
Create a Result that can write to the given uri. Used to implement the "document" extension element, we can only do this if we already have an OutputMethodHandler instead of a ContentHandler for the transform results
Specified by:
createResult in interface Result

endElementContent

protected void endElementContent(Name elementType)
            throws XSLException
Overrides:
endElementContent in interface ResultBase

getLength

public int getLength()
Overrides:
getLength in interface ResultBase

getQName

public String getQName(int i)
Overrides:
getQName in interface ResultBase

getValue

public String getValue(int i)
Overrides:
getValue in interface ResultBase

resultTreeFragment

public void resultTreeFragment(ResultTreeFragment frag)
            throws XSLException
Overrides:
resultTreeFragment in interface ResultBase

startElementContent

protected void startElementContent(Name elementType,
                                   NamespacePrefixMap map)
            throws XSLException
Overrides:
startElementContent in interface ResultBase