|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.UnImplNode | +--org.apache.xalan.templates.ElemTemplateElement | +--org.apache.xalan.templates.ElemUse | +--org.apache.xalan.templates.ElemLiteralResult
**For advanced use only** Implement a Literal Result Element.
Constructor Summary | |
ElemLiteralResult()
|
Method Summary | |
void |
addLiteralResultAttribute(AVT avt)
Set a literal result attribute (AVTs only). |
void |
addLiteralResultAttribute(java.lang.String att)
Set a literal result attribute (used for xsl attributes). |
boolean |
containsExcludeResultPrefix(java.lang.String prefix)
Get whether or not the passed URL is contained flagged by the "extension-element-prefixes" property. |
boolean |
containsExtensionElementURI(java.lang.String uri)
Find out if the given "extension-element-prefix" property is defined. |
java.util.Enumeration |
enumerateLiteralResultAttributes()
Compiling templates requires that we be able to list the AVTs ADDED 9/5/2000 to support compilation experiment |
void |
execute(TransformerImpl transformer,
Node sourceNode,
QName mode)
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. |
java.lang.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(java.lang.String name)
Get a literal result attribute by name. |
java.lang.String |
getLocalName()
Get the local name of the Literal Result Element. |
java.lang.String |
getNamespace()
Get the original namespace of the Literal Result Element. |
java.lang.String |
getNodeName()
Return the node name. |
java.lang.String |
getRawName()
Get the raw name of the Literal Result Element. |
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(java.lang.String localName)
Set the local name of the LRE. |
void |
setNamespace(java.lang.String ns)
Set the namespace URI of the result element to be created. |
void |
setRawName(java.lang.String rawName)
Set the raw name of the LRE. |
void |
setVersion(java.lang.String v)
Set the "version" property. |
void |
setXmlSpace(AVT avt)
Set the "xml:space" attribute. |
Methods inherited from class org.apache.xalan.templates.ElemUse |
getUseAttributeSets,
setUseAttributeSets,
setUseAttributeSets |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ElemLiteralResult()
Method Detail |
public void setIsLiteralResultAsStylesheet(boolean b)
b
- boolean flag indicating whether this element
represents a root element that is also the stylesheet element.public boolean getIsLiteralResultAsStylesheet()
public void addLiteralResultAttribute(AVT avt)
avt
- literal result attribute to add (AVT only)public void addLiteralResultAttribute(java.lang.String att)
att
- literal result attribute to addpublic void setXmlSpace(AVT avt)
v
- Enumerated value, either Constants.ATTRVAL_PRESERVE
or Constants.ATTRVAL_STRIP.public AVT getLiteralResultAttribute(java.lang.String name)
name
- Name of literal result attribute to getpublic boolean containsExcludeResultPrefix(java.lang.String prefix)
prefix
- non-null reference to prefix that might be excluded.public void resolvePrefixTables() throws TransformerException
public void setNamespace(java.lang.String ns)
ns
- The Namespace URI, or the empty string if the
element has no Namespace URI.public java.lang.String getNamespace()
public void setLocalName(java.lang.String localName)
localName
- The local name (without prefix) of the result element
to be created.public java.lang.String getLocalName()
public void setRawName(java.lang.String rawName)
rawName
- The qualified name (with prefix), or the
empty string if qualified names are not available.public java.lang.String getRawName()
public void setExtensionElementPrefixes(StringVector v)
v
- Vector of URI to set as the "extension-element-prefixes" propertypublic java.lang.String getExtensionElementPrefix(int i) throws java.lang.ArrayIndexOutOfBoundsException
i
- Index of URI ("extension-element-prefix" property) to getpublic int getExtensionElementPrefixCount()
public boolean containsExtensionElementURI(java.lang.String uri)
uri
- The URI to findpublic int getXSLToken()
Constants
public java.lang.String getNodeName()
public void setVersion(java.lang.String v)
v
- Version property value to setpublic void setExcludeResultPrefixes(StringVector v)
v
- vector of prefixes that are resolvable to strings.public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws TransformerException
transformer
- non-null reference to the the current transform-time state.sourceNode
- non-null reference to the current source node.mode
- reference, which may be null, to the current mode.public java.util.Enumeration enumerateLiteralResultAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |