com.jclark.xsl.tr

Class StringResult

Implemented Interfaces:
Result

(package private) class StringResult
extends java.lang.Object
implements Result

Constructor Summary

StringResult()
StringResult(Result result)

Method Summary

void
attribute(Name name, String value)
Construct an Attribute ...
void
characters(String str)
build a TEXT node
(package private) void
clear()
void
comment(String str)
Construct a comment
Result
createResult(String uri)
Create a new Result object for serializing to the destination uri.
void
end()
Finish constructing stuff.
void
endElement(Name elementType)
Finish constructing an Element
void
message(Node node, String str)
Support the xsl:message element.
void
processingInstruction(String target, String data)
Construct a Processing Instruction
void
rawCharacters(String str)
Some (possibly) non XML characters
void
start(OutputMethod om)
Prepare to start constructing stuff.
void
startElement(Name elementType, NamespacePrefixMap nsMap)
Start constructing an Element (NB) The nsMap must declare the prefix on elementType correctly.
String
toString()

Constructor Details

StringResult

(package private)  StringResult()

StringResult

(package private)  StringResult(Result result)

Method Details

attribute

public void attribute(Name name,
                      String value)
Construct an Attribute ... Unlike SAX, we don't have the luxury of having all the Attributes present when the Element is started. Some may be constructed later as a consequence of an xsl:attribute for example.
Specified by:
attribute in interface Result

characters

public void characters(String str)
            throws XSLException
build a TEXT node
Specified by:
characters in interface Result

clear

(package private)  void clear()

comment

public void comment(String str)
Construct a comment
Specified by:
comment in interface Result

createResult

public Result createResult(String uri)
Create a new Result object for serializing to the destination uri. Provides support for the "xt:document" extension element
Specified by:
createResult in interface Result

end

public void end()
Finish constructing stuff.
Specified by:
end in interface Result

endElement

public void endElement(Name elementType)
Finish constructing an Element
Specified by:
endElement in interface Result

message

public void message(Node node,
                    String str)
            throws XSLException
Support the xsl:message element.
Specified by:
message in interface Result
Parameters:
node - The source context node under consideration when the message action is performed. May be used for locator information

processingInstruction

public void processingInstruction(String target,
                                  String data)
Construct a Processing Instruction
Specified by:
processingInstruction in interface Result

rawCharacters

public void rawCharacters(String str)
            throws XSLException
Some (possibly) non XML characters
Specified by:
rawCharacters in interface Result

start

public void start(OutputMethod om)
Prepare to start constructing stuff. ... take care of any initialization tasks.
Specified by:
start in interface Result
Parameters:

startElement

public void startElement(Name elementType,
                         NamespacePrefixMap nsMap)
Start constructing an Element (NB) The nsMap must declare the prefix on elementType correctly.
Specified by:
startElement in interface Result

toString

public String toString()