org.apache.xalan.serialize
public class SerializerUtils extends Object
UNKNOWN: internal
Method Summary | |
---|---|
static void | addAttribute(SerializationHandler handler, int attr)
Copy an DOM attribute to the created output element, executing
attribute templates as need be, and processing the xsl:use
attribute.
|
static void | addAttributes(SerializationHandler handler, int src)
Copy DOM attributes to the result element.
|
static void | ensureNamespaceDeclDeclared(SerializationHandler handler, DTM dtm, int namespace)
This function checks to make sure a given prefix is really
declared. |
static boolean | isDefinedNSDecl(SerializationHandler serializer, int attr, DTM dtm)
Returns whether a namespace is defined
|
static void | outputResultTreeFragment(SerializationHandler handler, XObject obj, XPathContext support)
Given a result tree fragment, walk the tree and
output it to the SerializationHandler.
|
static void | processNSDecls(SerializationHandler handler, int src, int type, DTM dtm)
Copy xmlns: attributes in if not already in scope.
|
Parameters: handler SerializationHandler to which the attributes are added. attr Attribute node to add to SerializationHandler.
Throws: TransformerException
Parameters: src Source node with the attributes
Throws: TransformerException
Throws: org.xml.sax.SAXException
Parameters: attr Namespace attribute node dtm The DTM that owns attr.
Returns: True if the namespace is already defined in list of namespaces
Parameters: obj Result tree fragment object support XPath context for the result tree fragment
Throws: org.xml.sax.SAXException
Parameters: src Source Node NEEDSDOC @param type NEEDSDOC @param dtm
Throws: TransformerException