addLiteralResultAttribute
public void addLiteralResultAttribute(String att)
Set a literal result attribute (used for xsl attributes).
att
- literal result attribute to add
addLiteralResultAttribute
public void addLiteralResultAttribute(AVT avt)
Set a literal result attribute (AVTs only).
avt
- literal result attribute to add (AVT only)
compose
public void compose(StylesheetRoot sroot)
throws TransformerException
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.
- compose in interface ElemTemplateElement
containsExcludeResultPrefix
public 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.
- containsExcludeResultPrefix in interface ElemTemplateElement
prefix
- non-null reference to prefix that might be excluded.(not currently used)uri
- reference to namespace that prefix maps to
- true if the prefix should normally be excluded.
containsExtensionElementURI
public boolean containsExtensionElementURI(String uri)
Find out if the given "extension-element-prefix" property is defined.
- True if the given URI is found
enumerateLiteralResultAttributes
public Iterator enumerateLiteralResultAttributes()
Compiling templates requires that we be able to list the AVTs
ADDED 9/5/2000 to support compilation experiment
- an Enumeration of the literal result attributes associated
with this element.
execute
public void execute(TransformerImpl transformer)
throws TransformerException
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.
- execute in interface ElemUse
transformer
- non-null reference to the the current transform-time state.
getAttribute
public String getAttribute(String rawName)
Return the raw value of the attribute.
- getAttribute in interface UnImplNode
- The Attr value as a string, or the empty string if that attribute
does not have a specified or default value
getAttributeNS
public String getAttributeNS(String namespaceURI,
String localName)
Return the raw value of the attribute.
- getAttributeNS in interface UnImplNode
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get
- The Attr value as a string, or the empty string if that attribute
does not have a specified or default value
getExtensionElementPrefix
public String getExtensionElementPrefix(int i)
throws ArrayIndexOutOfBoundsException
Get an "extension-element-prefix" property.
i
- Index of URI ("extension-element-prefix" property) to get
- URI at given index ("extension-element-prefix" property)
getExtensionElementPrefixCount
public int getExtensionElementPrefixCount()
Get the number of "extension-element-prefixes" Strings.
- the number of "extension-element-prefixes" Strings
getIsLiteralResultAsStylesheet
public boolean getIsLiteralResultAsStylesheet()
Return whether this element represents a root element
that is also the stylesheet element.
- boolean flag indicating whether this element
represents a root element that is also the stylesheet element.
getLiteralResultAttribute
public AVT getLiteralResultAttribute(String name)
Get a literal result attribute by name. The name is namespaceURI:localname
if namespace is not null.
name
- Name of literal result attribute to get
- literal result attribute (AVT)
getLiteralResultAttributeNS
public AVT getLiteralResultAttributeNS(String namespaceURI,
String localName)
Get a literal result attribute by name.
namespaceURI
- Namespace URI of attribute node to getlocalName
- Local part of qualified name of attribute node to get
- literal result attribute (AVT)
getLocalName
public String getLocalName()
Get the local name of the Literal Result Element.
Note that after resolvePrefixTables has been called, this will
return the aliased name prefix, not the original stylesheet
namespace prefix.
- getLocalName in interface ElemTemplateElement
- The local name (without prefix) of the result element
to be created.
getNamespace
public String getNamespace()
Get the original namespace of the Literal Result Element.
%REVIEW% Why isn't this overriding the getNamespaceURI method
rather than introducing a new one?
- The Namespace URI, or the empty string if the
element has no Namespace URI.
getPrefix
public String getPrefix()
Get the prefix part of the raw name of the Literal Result Element.
- getPrefix in interface UnImplNode
- The prefix, or the empty string if noprefix was provided.
getRawName
public String getRawName()
Get the raw name of the Literal Result Element.
- The qualified name (with prefix), or the
empty string if qualified names are not available.
getVersion
public String getVersion()
Get the "version" property.
getXSLToken
public int getXSLToken()
Get an int constant identifying the type of element.
- getXSLToken in interface ElemTemplateElement
- The token ID for this element
resolvePrefixTables
public void resolvePrefixTables()
throws TransformerException
Augment resolvePrefixTables, resolving the namespace aliases once
the superclass has resolved the tables.
- resolvePrefixTables in interface ElemTemplateElement
setExcludeResultPrefixes
public void setExcludeResultPrefixes(StringVector v)
Set the "exclude-result-prefixes" property.
The designation of a namespace as an excluded namespace is
effective within the subtree of the stylesheet rooted at
the element bearing the exclude-result-prefixes or
xsl:exclude-result-prefixes attribute; a subtree rooted
at an xsl:stylesheet element does not include any stylesheets
imported or included by children of that xsl:stylesheet element.
v
- vector of prefixes that are resolvable to strings.
setExtensionElementPrefixes
public void setExtensionElementPrefixes(StringVector v)
Set the "extension-element-prefixes" property.
v
- Vector of URIs (not prefixes) to set as the "extension-element-prefixes" property
setIsLiteralResultAsStylesheet
public void setIsLiteralResultAsStylesheet(boolean b)
Set whether this element represents a root element
that is also the stylesheet element.
b
- boolean flag indicating whether this element
represents a root element that is also the stylesheet element.
setLocalName
public void setLocalName(String localName)
Set the local name of the LRE.
localName
- The local name (without prefix) of the result element
to be created.
setNamespace
public void setNamespace(String ns)
Set the namespace URI of the result element to be created.
Note that after resolvePrefixTables has been called, this will
return the aliased result namespace, not the original stylesheet
namespace.
ns
- The Namespace URI, or the empty string if the
element has no Namespace URI.
setRawName
public void setRawName(String rawName)
Set the raw name of the LRE.
rawName
- The qualified name (with prefix), or the
empty string if qualified names are not available.
setVersion
public void setVersion(String v)
Set the "version" property.
v
- Version property value to set
setXmlSpace
public void setXmlSpace(AVT avt)
Set the "xml:space" attribute.
A text node is preserved if an ancestor element of the text node
has an xml:space attribute with a value of preserve, and
no closer ancestor element has xml:space with a value of default.
avt
- Enumerated value, either Constants.ATTRVAL_PRESERVE
or Constants.ATTRVAL_STRIP.
throwDOMException
public void throwDOMException(short code,
String msg)
Throw a DOMException
msg
- key of the error that occured.