org.apache.xalan.processor
Class ProcessorOutputElem

java.lang.Object
  extended byorg.apache.xml.utils.UnImplNode
      extended byorg.apache.xalan.templates.ElemTemplateElement
          extended byorg.apache.xalan.processor.XSLTElementProcessor
              extended byorg.apache.xalan.processor.ProcessorOutputElem
All Implemented Interfaces:
org.w3c.dom.Document, org.w3c.dom.Element, ExpressionNode, org.w3c.dom.Node, org.w3c.dom.NodeList, PrefixResolver, Serializable, javax.xml.transform.SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable

class ProcessorOutputElem
extends XSLTElementProcessor

TransformerFactory for xsl:output markup.

See Also:
XSLT DTD, output in XSLT Specification

Field Summary
private  OutputProperties m_outputProperties
          The output properties, set temporarily while the properties are being set from the attributes, and then nulled after that operation is completed.
 
Fields inherited from class org.apache.xalan.processor.XSLTElementProcessor
 
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement
m_docOrderNumber, m_hasVariableDecl, m_parentNode
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
(package private) ProcessorOutputElem()
           
 
Method Summary
 void addLiteralResultAttribute(String attrUri, String attrLocalName, String attrRawName, String attrValue)
          Set a foreign property from the attribute value.
 void setCdataSectionElements(Vector newValue)
          Set the cdata-section-elements property from the attribute value.
 void setDoctypePublic(String newValue)
          Set the doctype-public property from the attribute value.
 void setDoctypeSystem(String newValue)
          Set the doctype-system property from the attribute value.
 void setEncoding(String newValue)
          Set the encoding property from the attribute value.
 void setForeignAttr(String attrUri, String attrLocalName, String attrRawName, String attrValue)
          Set a foreign property from the attribute value.
 void setIndent(boolean newValue)
          Set the indent property from the attribute value.
 void setMediaType(String newValue)
          Set the media type property from the attribute value.
 void setMethod(QName newValue)
          Set the method property from the attribute value.
 void setOmitXmlDeclaration(boolean newValue)
          Set the omit-xml-declaration property from the attribute value.
 void setStandalone(boolean newValue)
          Set the standalone property from the attribute value.
 void setVersion(String newValue)
          Set the version property from the attribute value.
 void startElement(StylesheetHandler handler, String uri, String localName, String rawName, org.xml.sax.Attributes attributes)
          Receive notification of the start of an xsl:output element.
 
Methods inherited from class org.apache.xalan.processor.XSLTElementProcessor
characters, endElement, getElemDef, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setElemDef, setPropertiesFromAttributes, setPropertiesFromAttributes, skippedEntity, startNonText, unparsedEntityDecl
 
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement
accept, appendChild, appendChild, callChildVisitors, callChildVisitors, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, compose, containsExcludeResultPrefix, endCompose, error, error, execute, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeName, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPrefixes, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, getXSLToken, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, isValidNCName, item, recompose, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace
 
Methods inherited from class org.apache.xml.utils.UnImplNode
adoptNode, appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getImplementation, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSpecified, getStandalone, getStrictErrorChecking, getVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setNodeValue, setPrefix, setStrictErrorChecking, setValue, splitText, substringData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_outputProperties

private OutputProperties m_outputProperties
The output properties, set temporarily while the properties are being set from the attributes, and then nulled after that operation is completed.

Constructor Detail

ProcessorOutputElem

ProcessorOutputElem()
Method Detail

setCdataSectionElements

public void setCdataSectionElements(Vector newValue)
Set the cdata-section-elements property from the attribute value.

Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.CDATA_SECTION_ELEMENTS

setDoctypePublic

public void setDoctypePublic(String newValue)
Set the doctype-public property from the attribute value.

Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.DOCTYPE_PUBLIC

setDoctypeSystem

public void setDoctypeSystem(String newValue)
Set the doctype-system property from the attribute value.

Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.DOCTYPE_SYSTEM

setEncoding

public void setEncoding(String newValue)
Set the encoding property from the attribute value.

Overrides:
setEncoding in class UnImplNode
Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.ENCODING

setIndent

public void setIndent(boolean newValue)
Set the indent property from the attribute value.

Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.INDENT

setMediaType

public void setMediaType(String newValue)
Set the media type property from the attribute value.

Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.MEDIA_TYPE

setMethod

public void setMethod(QName newValue)
Set the method property from the attribute value.

Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.METHOD

setOmitXmlDeclaration

public void setOmitXmlDeclaration(boolean newValue)
Set the omit-xml-declaration property from the attribute value.

Parameters:
newValue - processed attribute value.
See Also:
OutputKeys.OMIT_XML_DECLARATION

setStandalone

public void setStandalone(boolean newValue)
Set the standalone property from the attribute value.

Overrides:
setStandalone in class UnImplNode
Parameters:
newValue - processed attribute value.
See Also:
OutputKeys.STANDALONE

setVersion

public void setVersion(String newValue)
Set the version property from the attribute value.

Overrides:
setVersion in class UnImplNode
Parameters:
newValue - non-null reference to processed attribute value.
See Also:
OutputKeys.VERSION

setForeignAttr

public void setForeignAttr(String attrUri,
                           String attrLocalName,
                           String attrRawName,
                           String attrValue)
Set a foreign property from the attribute value.


addLiteralResultAttribute

public void addLiteralResultAttribute(String attrUri,
                                      String attrLocalName,
                                      String attrRawName,
                                      String attrValue)
Set a foreign property from the attribute value.


startElement

public void startElement(StylesheetHandler handler,
                         String uri,
                         String localName,
                         String rawName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Receive notification of the start of an xsl:output element.

Overrides:
startElement in class XSLTElementProcessor
Parameters:
handler - The calling StylesheetHandler/TemplatesBuilder.
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.
rawName - The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
attributes - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Throws:
org.xml.sax.SAXException