Package org.apache.xalan.xsltc.dom
Class SAXImpl
- All Implemented Interfaces:
DOM,DOMBuilder,ExtendedSAX,DOMEnhancedForDTM,DTM,ContentHandler,DTDHandler,EntityResolver,ErrorHandler,DeclHandler,LexicalHandler
SAXImpl is the core model for SAX input source. SAXImpl objects are
usually created from an XSLTCDTMManager.
DOMSource inputs are handled using DOM2SAX + SAXImpl. SAXImpl has a few specific fields (e.g. _node2Ids, _document) to keep DOM-related information. They are used when the processing behavior between DOM and SAX has to be different. Examples of these include id function and unparsed entity.
SAXImpl extends SAX2DTM2 instead of SAX2DTM for better performance.
- Author:
- Jacek Ambroziak, Santiago Pericas-Geertsen, Morten Jorgensen, Douglas Sellers <douglasjsellers@hotmail.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classIterator that returns attributes within a given namespace for a node.final classIterator that returns children within a given namespace for a given node.final classIterator that handles node tests that test for a namespace, but have a wild card for the local name of the node, i.e., node tests of the form:: :* classIterator that returns the namespace nodes as defined by the XPath data model for a given node, filtered by extended type ID.Nested classes/interfaces inherited from class org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2
SAX2DTM2.AncestorIterator, SAX2DTM2.AttributeIterator, SAX2DTM2.ChildrenIterator, SAX2DTM2.DescendantIterator, SAX2DTM2.FollowingIterator, SAX2DTM2.FollowingSiblingIterator, SAX2DTM2.ParentIterator, SAX2DTM2.PrecedingIterator, SAX2DTM2.PrecedingSiblingIterator, SAX2DTM2.TypedAncestorIterator, SAX2DTM2.TypedAttributeIterator, SAX2DTM2.TypedChildrenIterator, SAX2DTM2.TypedDescendantIterator, SAX2DTM2.TypedFollowingIterator, SAX2DTM2.TypedFollowingSiblingIterator, SAX2DTM2.TypedPrecedingIterator, SAX2DTM2.TypedPrecedingSiblingIterator, SAX2DTM2.TypedRootIterator, SAX2DTM2.TypedSingletonIteratorNested classes/interfaces inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseIterators
DTMDefaultBaseIterators.InternalAxisIteratorBase, DTMDefaultBaseIterators.NamespaceIterator, DTMDefaultBaseIterators.NthDescendantIterator, DTMDefaultBaseIterators.RootIterator, DTMDefaultBaseIterators.SingletonIterator -
Field Summary
Fields inherited from class org.apache.xml.dtm.ref.DTMDefaultBase
DEFAULT_BLOCKSIZE, DEFAULT_NUMBLOCKS, DEFAULT_NUMBLOCKS_SMALL, m_mgr, ROOTNODEFields inherited from interface org.apache.xalan.xsltc.DOM
ADAPTIVE_RTF, FIRST_TYPE, NO_TYPE, NULL, RETURN_CURRENT, RETURN_PARENT, SIMPLE_RTF, TREE_RTFFields inherited from interface org.apache.xml.dtm.DTM
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NAMESPACE_NODE, NOTATION_NODE, NTYPES, NULL, PROCESSING_INSTRUCTION_NODE, ROOT_NODE, TEXT_NODE -
Constructor Summary
ConstructorsConstructorDescriptionSAXImpl(XSLTCDTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, boolean buildIdIndex) Construct a SAXImpl object using the default block size.SAXImpl(XSLTCDTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean buildIdIndex, boolean newNameTable) Construct a SAXImpl object using the given block size. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) SAX2: Receive notification of character data.voidcharacters(int node, SerializationHandler handler) Copy the string value of a node directly to an output handlervoidcomment(char[] ch, int start, int length) SAX2: Report an XML comment anywhere in the document.voidcopy(int node, SerializationHandler handler) Performs a deep copy (ref.voidcopy(DTMAxisIterator nodes, SerializationHandler handler) Copy a node-set to an output handlervoidcopy(SerializationHandler handler) Copy the whole tree to an output handlervoidSAX2: Receive notification of the end of a document.voidendElement(String namespaceURI, String localName, String qname) SAX2: Receive notification of the end of an element.intgetAttributeNode(int type, int element) Returns the attribute node of a given type (if any) for an elementgetAttributeValue(int type, int element) Returns the value of a given attribute type of a given elementgetAttributeValue(String name, int element) This method is for testing/debugging onlygetAxisIterator(int axis) This is a shortcut to the iterators that implement the supported XPath axes (only namespace::) is not supported.Returns an instance of the DOMBuilder inner class This class will consume the input document through a SAX2 interface and populate the tree.getChildren(int node) Returns an iterator with all the children of a given nodeReturns the origin of the document from which the tree was builtgetDocumentURI(int node) intgetElementById(String idString) Return the node identity for a given id String%HZ% Need JavadocintgetGeneralizedType(String name) Returns the internal type associated with an expanded QNameintgetGeneralizedType(String name, boolean searchOnly) Returns the internal type associated with an expanded QNameReturns singleton iterator containg the document root Works for them main document (mark == 0).getLanguage(int node) Returns a node' defined language for a node (if any)short[]getMapping(String[] names, String[] uris, int[] types) Get mapping from DOM element/attribute types to external typesgetNamespaceAxisIterator(int axis, int ns) Do not think that this returns an iterator for the namespace axis.short[]getNamespaceMapping(String[] namespaces) Get mapping from DOM namespace types to external namespace typesgetNamespaceName(int node) Returns the namespace URI to which a node belongsintgetNamespaceType(int node) Returns the namespace type of a specific nodegetNodeName(int node) Returns the name of a node (attribute or element).getNodeValueIterator(DTMAxisIterator iterator, int type, String value, boolean op) intgetNSType(int node) Get mapping from DOM namespace types to external namespace typesgetNthDescendant(int type, int n, boolean includeself) Returns the nth descendant of a nodeReturn a SerializationHandler for output handling.getResultTreeFrag(int initSize, int rtfType) Return a instance of a DOM class to be used as an RTFgetResultTreeFrag(int initSize, int rtfType, boolean addToManager) Return a instance of a DOM class to be used as an RTFint[]getReverseMapping(String[] names, String[] uris, int[] types) Get mapping from external element/attribute types to DOM typesshort[]getReverseNamespaceMapping(String[] namespaces) Get mapping from external namespace types to DOM namespace typesintgetSize()Returns the number of nodes in the tree (used for indexing)getTypedAxisIterator(int axis, int type) Similar to getAxisIterator, but this one returns an iterator containing nodes of a typed axis (ex.: child::foo)getTypedChildren(int type) Returns an iterator with all children of a specific type for a given node (element)getTypedDescendantIterator(int type) Returns an iterator with all descendants of a node that are of a given type.getUnparsedEntityURI(String name) The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]).booleanReturn true if the input source is DOMSource.voidignorableWhitespace(char[] ch, int start, int length) SAX2: Receive notification of ignorable whitespace in element content.booleanisAttribute(int node) Returns 'true' if a specific node is an attribute (of any type)booleanisElement(int node) Returns 'true' if a specific node is an element (of any type)booleanlessThan(int node1, int node2) Returns true if node1 comes before node2 in document orderlookupNamespace(int node, String prefix) Lookup a namespace URI from a prefix starting at node.makeNode(int index) Create an org.w3c.dom.Node from a node in the treemakeNode(DTMAxisIterator iter) Create an org.w3c.dom.Node from a node in an iterator The iterator most be started before this method is calledmakeNodeList(int index) Create an org.w3c.dom.NodeList from a node in the treemakeNodeList(DTMAxisIterator iter) Create an org.w3c.dom.NodeList from a node iterator The iterator most be started before this method is calledvoidmigrateTo(DTMManager manager) Migrate a DTM built with an old DTMManager to a new DTMManager.orderNodes(DTMAxisIterator source, int node) Encapsulates an iterator in an OrderedIterator to ensure node ordervoidprint(int node, int level) Prints the whole tree to standard outputvoidprocessingInstruction(String target, String data) SAX2: Receive notification of a processing instruction.voidsetDocumentURI(String uri) Define the origin of the document from which the tree was builtbooleansetEscaping(boolean value) voidsetFilter(StripFilter filter) Part of the DOM interface - no function here.voidsetupMapping(String[] names, String[] urisArray, int[] typesArray, String[] namespaces) shallowCopy(int node, SerializationHandler handler) Performs a shallow copy (ref.voidSAX2: Receive notification of the beginning of a document.voidstartElement(String uri, String localName, String qname, Attributes attributes) SAX2: Receive notification of the beginning of an element.voidstartElement(String uri, String localName, String qname, Attributes attributes, Node node) Specialized interface used by DOM2SAX.voidstartPrefixMapping(String prefix, String uri) SAX2: Begin the scope of a prefix-URI Namespace mapping.Methods inherited from class org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2
_exptype, _exptype2, _exptype2Type, _firstch2, _nextsib2, _parent2, _type2, dispatchCharactersEvents, getExpandedTypeID2, getFirstAttribute, getIdForNamespace, getLocalName, getNodeNameX, getNodeValue, getStringValue, getStringValue, getStringValueXMethods inherited from class org.apache.xml.dtm.ref.sax2dtm.SAX2DTM
attributeDecl, clearCoRoutine, clearCoRoutine, dispatchToEvents, elementDecl, endCDATA, endDTD, endEntity, endPrefixMapping, error, externalEntityDecl, fatalError, getAttributeNode, getContentHandler, getDeclHandler, getDocumentTypeDeclarationPublicIdentifier, getDocumentTypeDeclarationSystemIdentifier, getDTDHandler, getEntityResolver, getErrorHandler, getFixedNames, getLexicalHandler, getNamespaceURI, getNamespaceURI, getNumberOfNodes, getPrefix, getPrefix, getSourceLocatorFor, internalEntityDecl, isAttributeSpecified, isWhitespace, needsTwoThreads, notationDecl, resolveEntity, setDocumentLocator, setIDAttribute, setIncrementalSAXSource, setProperty, setUseSourceLocation, skippedEntity, startCDATA, startDTD, startEntity, unparsedEntityDecl, warningMethods inherited from class org.apache.xml.dtm.ref.DTMDefaultBaseTraversers
getAxisTraverserMethods inherited from class org.apache.xml.dtm.ref.DTMDefaultBase
appendChild, appendTextChild, documentRegistration, documentRelease, dumpDTM, dumpNode, getDocument, getDocumentAllDeclarationsProcessed, getDocumentBaseURI, getDocumentEncoding, getDocumentRoot, getDocumentStandalone, getDocumentSystemIdentifier, getDocumentVersion, getDTMIDs, getExpandedTypeID, getExpandedTypeID, getFirstChild, getFirstNamespaceNode, getLastChild, getLevel, getLocalNameFromExpandedNameID, getManager, getNamespaceFromExpandedNameID, getNextAttribute, getNextNamespaceNode, getNextSibling, getNode, getNodeHandle, getNodeIdent, getNodeType, getOwnerDocument, getParent, getPreviousSibling, getStringValueChunk, getStringValueChunkCount, getTypedFirstChild, getTypedNextSibling, hasChildNodes, isCharacterElementContentWhitespace, isDocumentAllDeclarationsProcessed, isNodeAfter, isSupported, makeNodeHandle, makeNodeIdentity, setDocumentBaseURI, setFeature, supportsPreStrippingMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration, endPrefixMapping, setDocumentLocator, skippedEntityMethods inherited from interface org.xml.sax.ext.DeclHandler
attributeDecl, elementDecl, externalEntityDecl, internalEntityDeclMethods inherited from interface org.apache.xalan.xsltc.DOM
getDocument, getExpandedTypeID, getNodeHandle, getNodeIdent, getNodeNameX, getParent, getStringValue, getStringValueXMethods inherited from interface org.apache.xalan.xsltc.DOMEnhancedForDTM
getExpandedTypeID2Methods inherited from interface org.xml.sax.DTDHandler
notationDecl, unparsedEntityDeclMethods inherited from interface org.xml.sax.ext.LexicalHandler
endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
-
Constructor Details
-
SAXImpl
public SAXImpl(XSLTCDTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, boolean buildIdIndex) Construct a SAXImpl object using the default block size. -
SAXImpl
public SAXImpl(XSLTCDTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean buildIdIndex, boolean newNameTable) Construct a SAXImpl object using the given block size.
-
-
Method Details
-
setDocumentURI
Define the origin of the document from which the tree was built- Specified by:
setDocumentURIin interfaceDOMEnhancedForDTM
-
getDocumentURI
Returns the origin of the document from which the tree was built- Specified by:
getDocumentURIin interfaceDOMEnhancedForDTM
-
getDocumentURI
- Specified by:
getDocumentURIin interfaceDOM
-
setupMapping
- Specified by:
setupMappingin interfaceDOM
-
lookupNamespace
Lookup a namespace URI from a prefix starting at node. This method is used in the execution of xsl:element when the prefix is not known at compile time.- Specified by:
lookupNamespacein interfaceDOM- Throws:
TransletException
-
isElement
public boolean isElement(int node) Returns 'true' if a specific node is an element (of any type) -
isAttribute
public boolean isAttribute(int node) Returns 'true' if a specific node is an attribute (of any type)- Specified by:
isAttributein interfaceDOM
-
getSize
public int getSize()Returns the number of nodes in the tree (used for indexing) -
setFilter
Part of the DOM interface - no function here. -
lessThan
public boolean lessThan(int node1, int node2) Returns true if node1 comes before node2 in document order -
makeNode
Create an org.w3c.dom.Node from a node in the tree -
makeNode
Create an org.w3c.dom.Node from a node in an iterator The iterator most be started before this method is called -
makeNodeList
Create an org.w3c.dom.NodeList from a node in the tree- Specified by:
makeNodeListin interfaceDOM
-
makeNodeList
Create an org.w3c.dom.NodeList from a node iterator The iterator most be started before this method is called- Specified by:
makeNodeListin interfaceDOM
-
getNodeValueIterator
public DTMAxisIterator getNodeValueIterator(DTMAxisIterator iterator, int type, String value, boolean op) - Specified by:
getNodeValueIteratorin interfaceDOM
-
orderNodes
Encapsulates an iterator in an OrderedIterator to ensure node order- Specified by:
orderNodesin interfaceDOM
-
getIterator
Returns singleton iterator containg the document root Works for them main document (mark == 0). It cannot be made to point to any other node through setStartNode().- Specified by:
getIteratorin interfaceDOM
-
getNSType
public int getNSType(int node) Get mapping from DOM namespace types to external namespace types -
getNamespaceType
public int getNamespaceType(int node) Returns the namespace type of a specific node- Specified by:
getNamespaceTypein interfaceDOM- Overrides:
getNamespaceTypein classDTMDefaultBase- Parameters:
node- the id of the node.- Returns:
- the ID of the namespace.
-
getGeneralizedType
Returns the internal type associated with an expanded QName -
getGeneralizedType
Returns the internal type associated with an expanded QName -
getMapping
Get mapping from DOM element/attribute types to external types- Specified by:
getMappingin interfaceDOMEnhancedForDTM
-
getReverseMapping
Get mapping from external element/attribute types to DOM types- Specified by:
getReverseMappingin interfaceDOMEnhancedForDTM
-
getNamespaceMapping
Get mapping from DOM namespace types to external namespace types- Specified by:
getNamespaceMappingin interfaceDOMEnhancedForDTM
-
getReverseNamespaceMapping
Get mapping from external namespace types to DOM namespace types- Specified by:
getReverseNamespaceMappingin interfaceDOMEnhancedForDTM
-
migrateTo
Migrate a DTM built with an old DTMManager to a new DTMManager. After the migration, the new DTMManager will treat the DTM as one that is built by itself. This is used to support DTM sharing between multiple transformations. -
getElementById
Return the node identity for a given id String- Specified by:
getElementByIdin interfaceDOMEnhancedForDTM- Specified by:
getElementByIdin interfaceDTM- Overrides:
getElementByIdin classSAX2DTM- Parameters:
idString- The id String- Returns:
- The identity of the node whose id is the given String.
-
hasDOMSource
public boolean hasDOMSource()Return true if the input source is DOMSource.- Specified by:
hasDOMSourcein interfaceDOMEnhancedForDTM
-
characters
SAX2: Receive notification of character data.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classSAX2DTM- Parameters:
ch- The characters.start- The start position in the character array.length- The number of characters to use from the character array.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
startDocument
SAX2: Receive notification of the beginning of a document.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classSAX2DTM2- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
endDocument
SAX2: Receive notification of the end of a document.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classSAX2DTM2- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
startElement
public void startElement(String uri, String localName, String qname, Attributes attributes, Node node) throws SAXException Specialized interface used by DOM2SAX. This one has an extra Node parameter to build the Node -> id map.- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qname, Attributes attributes) throws SAXException SAX2: Receive notification of the beginning of an element.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classSAX2DTM2- Parameters:
uri- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.localName- The local name (without prefix), or the empty string if Namespace processing is not being performed.qname- The qualified name (with prefix), or the empty string if qualified names are not available.attributes- The specified or defaulted attributes.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
endElement
SAX2: Receive notification of the end of an element.- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classSAX2DTM2- Parameters:
namespaceURI- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.localName- The local name (without prefix), or the empty string if Namespace processing is not being performed.qname- The qualified XML 1.0 name (with prefix), or the empty string if qualified names are not available.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
processingInstruction
SAX2: Receive notification of a processing instruction.- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classSAX2DTM2- Parameters:
target- The processing instruction target.data- The processing instruction data, or null if none is supplied.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
ignorableWhitespace
SAX2: Receive notification of ignorable whitespace in element content. Similar to characters(char[], int, int).- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classSAX2DTM- Parameters:
ch- The whitespace characters.start- The start position in the character array.length- The number of characters to use from the character array.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
startPrefixMapping
SAX2: Begin the scope of a prefix-URI Namespace mapping.- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classSAX2DTM- Parameters:
prefix- The Namespace prefix being declared.uri- The Namespace URI mapped to the prefix.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.- See Also:
-
comment
SAX2: Report an XML comment anywhere in the document.- Specified by:
commentin interfaceLexicalHandler- Overrides:
commentin classSAX2DTM2- Parameters:
ch- An array holding the characters in the comment.start- The starting position in the array.length- The number of characters to use from the array.- Throws:
SAXException- The application may raise an exception.
-
setEscaping
public boolean setEscaping(boolean value) -
print
public void print(int node, int level) Prints the whole tree to standard output -
getNodeName
Returns the name of a node (attribute or element).- Specified by:
getNodeNamein interfaceDOM- Specified by:
getNodeNamein interfaceDTM- Overrides:
getNodeNamein classSAX2DTM2- Parameters:
node- the id of the node.- Returns:
- String Name of this node, which may be an empty string. %REVIEW% Document when empty string is possible... %REVIEW-COMMENT% It should never be empty, should it?
-
getNamespaceName
Returns the namespace URI to which a node belongs- Specified by:
getNamespaceNamein interfaceDOM
-
getAttributeNode
public int getAttributeNode(int type, int element) Returns the attribute node of a given type (if any) for an element- Specified by:
getAttributeNodein interfaceDOM
-
getAttributeValue
Returns the value of a given attribute type of a given element -
getAttributeValue
This method is for testing/debugging only -
getChildren
Returns an iterator with all the children of a given node- Specified by:
getChildrenin interfaceDOM
-
getTypedChildren
Returns an iterator with all children of a specific type for a given node (element)- Specified by:
getTypedChildrenin interfaceDOM
-
getAxisIterator
This is a shortcut to the iterators that implement the supported XPath axes (only namespace::) is not supported. Returns a bare-bones iterator that must be initialized with a start node (using iterator.setStartNode()).- Specified by:
getAxisIteratorin interfaceDOM- Specified by:
getAxisIteratorin interfaceDTM- Overrides:
getAxisIteratorin classDTMDefaultBaseIterators- Parameters:
axis- One of Axes.ANCESTORORSELF, etc.- Returns:
- A DTMAxisIterator, or null if the given axis isn't supported.
-
getTypedAxisIterator
Similar to getAxisIterator, but this one returns an iterator containing nodes of a typed axis (ex.: child::foo)- Specified by:
getTypedAxisIteratorin interfaceDOM- Specified by:
getTypedAxisIteratorin interfaceDTM- Overrides:
getTypedAxisIteratorin classDTMDefaultBaseIterators- Parameters:
axis- One of Axes.ANCESTORORSELF, etc.type- An extended type ID.- Returns:
- A DTMAxisIterator, or null if the given axis isn't supported.
-
getNamespaceAxisIterator
Do not think that this returns an iterator for the namespace axis. It returns an iterator with nodes that belong in a certain namespace, such as with <xsl:apply-templates select="blob/foo:*"/> The 'axis' specifies the axis for the base iterator from which the nodes are taken, while 'ns' specifies the namespace URI type.- Specified by:
getNamespaceAxisIteratorin interfaceDOM
-
getTypedDescendantIterator
Returns an iterator with all descendants of a node that are of a given type. -
getNthDescendant
Returns the nth descendant of a node- Specified by:
getNthDescendantin interfaceDOM
-
characters
Copy the string value of a node directly to an output handler- Specified by:
charactersin interfaceDOM- Throws:
TransletException
-
copy
Copy a node-set to an output handler- Specified by:
copyin interfaceDOM- Throws:
TransletException
-
copy
Copy the whole tree to an output handler- Throws:
TransletException
-
copy
Performs a deep copy (ref. XSLs copy-of()) TODO: Copy namespace declarations. Can't be done until we add namespace nodes and keep track of NS prefixes TODO: Copy comment nodes- Specified by:
copyin interfaceDOM- Throws:
TransletException
-
shallowCopy
Performs a shallow copy (ref. XSLs copy())- Specified by:
shallowCopyin interfaceDOM- Throws:
TransletException
-
getLanguage
Returns a node' defined language for a node (if any)- Specified by:
getLanguagein interfaceDOM
-
getBuilder
Returns an instance of the DOMBuilder inner class This class will consume the input document through a SAX2 interface and populate the tree. -
getOutputDomBuilder
Return a SerializationHandler for output handling. This method is used by Result Tree Fragments.- Specified by:
getOutputDomBuilderin interfaceDOM
-
getResultTreeFrag
Return a instance of a DOM class to be used as an RTF- Specified by:
getResultTreeFragin interfaceDOM
-
getResultTreeFrag
Return a instance of a DOM class to be used as an RTF- Specified by:
getResultTreeFragin interfaceDOM- Parameters:
initSize- The initial size of the DOM.rtfType- The type of the RTFaddToManager- true if the RTF should be registered with the DTMManager.- Returns:
- The DOM object which represents the RTF.
-
getElementsWithIDs
%HZ% Need Javadoc- Specified by:
getElementsWithIDsin interfaceDOM
-
getUnparsedEntityURI
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]). It returns the empty string if there is no such entity.- Specified by:
getUnparsedEntityURIin interfaceDOM- Specified by:
getUnparsedEntityURIin interfaceDTM- Overrides:
getUnparsedEntityURIin classSAX2DTM- Parameters:
name- A string containing the Entity Name of the unparsed entity.- Returns:
- String containing the URI of the Unparsed Entity, or an empty string if no such entity exists.
-