public class Text
extends com.icl.saxon.style.StyleElement
Saxon extension element for inserting text
$Id: Text.java 5907 2006-04-27 08:26:47Z xmldoc $
Copyright (C) 2000 Norman Walsh.
This class provides a Saxon extension element for inserting text into a result tree.
Change Log:
Initial release.
| Modifier and Type | Field and Description |
|---|---|
protected int |
sequence |
attributeSets, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, versionATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
Text()
Constructor for Text
|
| Modifier and Type | Method and Description |
|---|---|
com.icl.saxon.om.AxisEnumeration |
enumerateChildren(com.icl.saxon.pattern.NodeTest arg0) |
org.w3c.dom.NodeList |
getChildNodes() |
org.w3c.dom.Node |
getFirstChild() |
org.w3c.dom.Node |
getLastChild() |
protected com.icl.saxon.tree.NodeImpl |
getNthChild(int arg0) |
protected long |
getSequenceNumber() |
boolean |
hasChildNodes() |
boolean |
isInstruction()
Is this element an instruction?
|
boolean |
mayContainTemplateBody()
Can this element contain a template-body?
|
void |
prepareAttributes()
Validate the arguments
|
void |
process(com.icl.saxon.Context context)
Insert the text of the file into the result tree
|
void |
validate()
Validate that the element occurs in a reasonable place.
|
bindVariable, checkEmpty, checkNotTopLevel, checkTopLevel, checkUnknownAttribute, checkWithinTemplate, compileError, compileError, definesExcludedNamespace, definesExtensionElement, doesPostProcessing, fallbackProcessing, findAttributeSets, forwardsCompatibleModeIsEnabled, getContainingStyleSheet, getPrecedence, getPreparedStyleSheet, getPrincipalStyleSheet, getStandardNames, getStyleSheetFunction, getVariableBinding, getVariableNames, getVersion, handleSortKeys, isExcludedNamespace, isExtensionNamespace, isTopLevel, makeAttributeValueTemplate, makeExpression, makePattern, preprocess, processAllAttributes, processAttributes, processAttributeSets, processChildren, processExcludedNamespaces, processExtensionElementAttribute, processVersionAttribute, reportAbsence, setValidationError, styleError, styleError, substituteFor, validateChildren, validateSubtreeaddNamespaceNodes, copy, getAttribute, getAttributeList, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getLength, getNamedItem, getNamedItemNS, getNamespaceCodes, getPrefixForURI, getURICodeForPrefix, hasAttribute, hasAttributeNS, hasAttributes, initialise, item, outputNamespaceNodes, removeAttribute, removeAttributeNode, removeAttributeNS, removeNamedItem, removeNamedItemNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setNamedItem, setNamedItemNS, setNamespaceDeclarationsaddChild, compact, copy, copyStringValue, dropChildren, generateId, getBaseURI, getDocumentRoot, getLineNumber, getNameCode, getNodeType, getNodeValue, getStringValue, getSystemId, makeNameCode, removeChild, renumberChildren, setLineNumber, setNameCode, setSystemId, useChildrenArraycompareOrder, getDisplayName, getDocumentElement, getEnumeration, getFingerprint, getLocalName, getNamePool, getNextInDocument, getNextSibling, getOriginatingNode, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getURI, isSameNodeInfo, removeNodeappendChild, appendData, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, disallowUpdate, getColumnNumber, getData, getDoctype, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getName, getNamespaceURI, getNodeName, getOwnerDocument, getOwnerElement, getParentNode, getPublicId, getSchemaTypeInfo, getSpecified, getTagName, getTextContent, getUserData, getValue, getWholeText, importNode, insertBefore, insertData, isDefaultNamespace, isElementContentWhitespace, isEqualNode, isId, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, replaceData, replaceWholeText, setData, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setPrefix, setTextContent, setUserData, setValue, splitText, substringData, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnNumber, getLineNumber, getPublicId, getSystemIdgetElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic boolean isInstruction()
Is this element an instruction?
Yes, it is.
isInstruction in class com.icl.saxon.style.StyleElementpublic boolean mayContainTemplateBody()
Can this element contain a template-body?
Yes, it can, but only so that it can contain xsl:fallback.
mayContainTemplateBody in class com.icl.saxon.style.StyleElementpublic void prepareAttributes()
throws javax.xml.transform.TransformerConfigurationException
Validate the arguments
The element must have an href attribute.
prepareAttributes in class com.icl.saxon.style.StyleElementjavax.xml.transform.TransformerConfigurationExceptionpublic void validate()
throws javax.xml.transform.TransformerConfigurationException
validate in class com.icl.saxon.style.StyleElementjavax.xml.transform.TransformerConfigurationExceptionpublic void process(com.icl.saxon.Context context)
throws javax.xml.transform.TransformerException
Insert the text of the file into the result tree
Processing this element inserts the contents of the URL named by the href attribute into the result tree as plain text.
Optional encoding attribute can specify encoding of resource. If not specified default system encoding is used.
process in class com.icl.saxon.style.StyleElementjavax.xml.transform.TransformerExceptionprotected final long getSequenceNumber()
getSequenceNumber in class com.icl.saxon.tree.NodeImplpublic final boolean hasChildNodes()
hasChildNodes in interface com.icl.saxon.om.NodeInfohasChildNodes in interface org.w3c.dom.NodehasChildNodes in class com.icl.saxon.tree.NodeImplpublic final com.icl.saxon.om.AxisEnumeration enumerateChildren(com.icl.saxon.pattern.NodeTest arg0)
public final org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class com.icl.saxon.tree.NodeImplpublic final org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.NodegetLastChild in class com.icl.saxon.tree.NodeImplpublic final org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.NodegetChildNodes in class com.icl.saxon.tree.NodeImplprotected final com.icl.saxon.tree.NodeImpl getNthChild(int arg0)