org.apache.xalan.templates
public class ElemLiteralResult extends ElemUse
See Also: literal-result-element in XSLT Specification
UNKNOWN: advanced
Nested Class Summary | |
---|---|
class | ElemLiteralResult.Attribute |
class | ElemLiteralResult.LiteralElementAttributes |
Method Summary | |
---|---|
void | addLiteralResultAttribute(AVT avt)
Set a literal result attribute (AVTs only).
|
void | addLiteralResultAttribute(String att)
Set a literal result attribute (used for xsl attributes).
|
void | compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition. |
boolean | containsExcludeResultPrefix(String prefix, String uri)
Get whether or not the passed URL is flagged by
the "extension-element-prefixes" or "exclude-result-prefixes"
properties. |
boolean | containsExtensionElementURI(String uri)
Find out if the given "extension-element-prefix" property is defined. |
Iterator | enumerateLiteralResultAttributes()
Compiling templates requires that we be able to list the AVTs
ADDED 9/5/2000 to support compilation experiment
|
void | execute(TransformerImpl transformer)
Copy a Literal Result Element into the Result tree, copy the
non-excluded namespace attributes, copy the attributes not
of the XSLT namespace, and execute the children of the LRE. |
String | getAttribute(String rawName)
Return the raw value of the attribute.
|
String | getAttributeNS(String namespaceURI, String localName)
Return the raw value of the attribute.
|
NamedNodeMap | getAttributes() |
String | getExtensionElementPrefix(int i)
Get an "extension-element-prefix" property. |
int | getExtensionElementPrefixCount()
Get the number of "extension-element-prefixes" Strings. |
boolean | getIsLiteralResultAsStylesheet()
Return whether this element represents a root element
that is also the stylesheet element.
|
AVT | getLiteralResultAttribute(String name)
Get a literal result attribute by name. |
AVT | getLiteralResultAttributeNS(String namespaceURI, String localName)
Get a literal result attribute by name.
|
String | getLocalName()
Get the local name of the Literal Result Element.
|
String | getNamespace()
Get the original namespace of the Literal Result Element.
|
String | getNodeName()
Return the node name.
|
String | getPrefix()
Get the prefix part of the raw name of the Literal Result Element.
|
String | getRawName()
Get the raw name of the Literal Result Element.
|
String | getVersion()
Get the "version" property. |
int | getXSLToken()
Get an int constant identifying the type of element. |
void | resolvePrefixTables()
Augment resolvePrefixTables, resolving the namespace aliases once
the superclass has resolved the tables.
|
void | setExcludeResultPrefixes(StringVector v)
Set the "exclude-result-prefixes" property.
|
void | setExtensionElementPrefixes(StringVector v)
Set the "extension-element-prefixes" property. |
void | setIsLiteralResultAsStylesheet(boolean b)
Set whether this element represents a root element
that is also the stylesheet element.
|
void | setLocalName(String localName)
Set the local name of the LRE.
|
void | setNamespace(String ns)
Set the namespace URI of the result element to be created.
|
void | setRawName(String rawName)
Set the raw name of the LRE.
|
void | setVersion(String v)
Set the "version" property. |
void | setXmlSpace(AVT avt)
Set the "xml:space" attribute.
|
void | throwDOMException(short code, String msg)
Throw a DOMException
|
Parameters: avt literal result attribute to add (AVT only)
Parameters: att literal result attribute to add
Parameters: prefix non-null reference to prefix that might be excluded.(not currently used) uri reference to namespace that prefix maps to
Returns: true if the prefix should normally be excluded.
See Also: extension-element in XSLT Specification
Parameters: uri The URI to find
Returns: True if the given URI is found
See Also: extension-element in XSLT Specification
Returns: an Enumeration of the literal result attributes associated with this element.
Parameters: transformer non-null reference to the the current transform-time state.
Throws: TransformerException
Parameters: namespaceURI:localName or localName if the namespaceURI is null of the attribute to get
Returns: The Attr value as a string, or the empty string if that attribute does not have a specified or default value
Parameters: namespaceURI Namespace URI of attribute node to get localName Local part of qualified name of attribute node to get
Returns: The Attr value as a string, or the empty string if that attribute does not have a specified or default value
Returns: NamedNodeMap
See Also: org.w3c.dom.Node
Parameters: i Index of URI ("extension-element-prefix" property) to get
Returns: URI at given index ("extension-element-prefix" property)
Throws: ArrayIndexOutOfBoundsException
See Also: extension-element in XSLT Specification
Returns: the number of "extension-element-prefixes" Strings
See Also: extension-element in XSLT Specification
Returns: boolean flag indicating whether this element represents a root element that is also the stylesheet element.
Parameters: name Name of literal result attribute to get
Returns: literal result attribute (AVT)
Parameters: namespaceURI Namespace URI of attribute node to get localName Local part of qualified name of attribute node to get
Returns: literal result attribute (AVT)
Returns: The local name (without prefix) of the result element to be created.
Returns: The Namespace URI, or the empty string if the element has no Namespace URI.
Returns: The element's name
Returns: The prefix, or the empty string if noprefix was provided.
Returns: The qualified name (with prefix), or the empty string if qualified names are not available.
Returns: Version property value
See Also: forwards in XSLT Specification
Returns: The token ID for this element
Throws: TransformerException
Parameters: v vector of prefixes that are resolvable to strings.
Parameters: v Vector of URIs (not prefixes) to set as the "extension-element-prefixes" property
See Also: extension-element in XSLT Specification
Parameters: b boolean flag indicating whether this element represents a root element that is also the stylesheet element.
Parameters: localName The local name (without prefix) of the result element to be created.
Parameters: ns The Namespace URI, or the empty string if the element has no Namespace URI.
Parameters: rawName The qualified name (with prefix), or the empty string if qualified names are not available.
Parameters: v Version property value to set
See Also: forwards in XSLT Specification
Parameters: avt Enumerated value, either Constants.ATTRVAL_PRESERVE or Constants.ATTRVAL_STRIP.
See Also: strip in XSLT Specification
section-Creating-Text in XSLT Specification
Parameters: msg key of the error that occured.