abstract base class represents the results of executing a stylesheet Action --
constructs result components.
events are fired to the Result, which in turn fires
events to a SAX (1) DocumentHandler
attribute
public void attribute(Name name,
String value)
throws XSLException
construct an Attribute with the given name ... if we're not
at an appropriate point, eg, we've already started putting
text into an element, do nothing
- attribute in interface Result
end
public void end()
throws XSLException
flush any pending construction work, nothing else will be built
- end in interface Result
endElementContent
protected void endElementContent(Name elementType)
throws XSLException
flush
public void flush()
throws XSLException
call this when we're sure we're not getting any more
attribute node constructing actions
getAttributeName
protected final Name getAttributeName(int i)
- the name of the i'th Attribute
getDocumentHandler
protected final DocumentHandler getDocumentHandler()
getLength
public int getLength()
- the number of attribute nodes we have at this moment
getType
public String getType(String name)
- the type of the named Attribute (always "CDATA")
getType
public String getType(int i)
- the type of the i'th Attribute (always "CDATA")
getValue
public String getValue(String name)
- the value of the named Attribute (always "CDATA")
.. not sure how these names work with namespaces
returns null if the named Attribute is not found
getValue
public String getValue(int i)
- the value of the i'th Attribute
grow
(package private) static String[] grow(String[] v)
grow
(package private) static Name[] grow(Name[] v)
rawCharacters
public void rawCharacters(String str)
throws XSLException
rawCharacters are distinct from plain 'ol characters
in that we don't try to do any escaping
- rawCharacters in interface Result
setOutputMethod
(package private) DocumentHandler setOutputMethod(Name name,
OutputMethod method)
throws IOException,
SAXException
get the appropriate DocumentHandler from the
outputMethodHandler (we've already obtained for our destiantion)
for the named output method
throwXSLException
protected void throwXSLException(SAXException e)
throws XSLException