Represents a stylesheet element.
All properties in this class have a fixed form of bean-style property
accessors for all properties that represent XSL attributes or elements.
These properties have setter method names accessed generically by the
processor, and so these names must be fixed according to the system
defined in the
getSetterMethodName
function.
<!ENTITY % top-level "
(xsl:import*,
(xsl:include
| xsl:strip-space
| xsl:preserve-space
| xsl:output
| xsl:key
| xsl:decimal-format
| xsl:attribute-set
| xsl:variable
| xsl:param
| xsl:template
| xsl:namespace-alias
%non-xsl-top-level;)*)
">
<!ENTITY % top-level-atts '
extension-element-prefixes CDATA #IMPLIED
exclude-result-prefixes CDATA #IMPLIED
id ID #IMPLIED
version NMTOKEN #REQUIRED
xmlns:xsl CDATA #FIXED "http://www.w3.org/1999/XSL/Transform"
%space-att;
'>
<!ELEMENT xsl:stylesheet %top-level;>
<!ATTLIST xsl:stylesheet %top-level-atts;>
<!ELEMENT xsl:transform %top-level;>
<!ATTLIST xsl:transform %top-level-atts;>
containsExcludeResultPrefix
public boolean containsExcludeResultPrefix(String prefix,
String uri)
Get whether or not the passed prefix is contained flagged by
the "exclude-result-prefixes" property.
- containsExcludeResultPrefix in interface ElemTemplateElement
prefix
- non-null reference to prefix that might be excluded.uri
- reference to namespace that prefix maps to
- true if the prefix should normally be excluded.>
literal-result-element in XSLT Specification
containsExtensionElementURI
public boolean containsExtensionElementURI(String uri)
Find out if this contains a given "extension-element-prefix" property.
uri
- URI of extension element to look for
- True if the given URI was found in the list
extension-element in XSLT Specification
getAttributeSetCount
public int getAttributeSetCount()
Get the number of "xsl:attribute-set" properties.
- the number of "xsl:attribute-set" properties.
attribute-sets in XSLT Specification
getCompatibleMode
public boolean getCompatibleMode()
Get whether or not the stylesheet is in "Forward Compatibility Mode"
- true if in forward compatible mode, false otherwise
getDecimalFormatCount
public int getDecimalFormatCount()
Get the number of xsl:decimal-format declarations.
- the number of xsl:decimal-format declarations.
DecimalFormatProperties
getExcludeResultPrefix
public String getExcludeResultPrefix(int i)
throws ArrayIndexOutOfBoundsException
Get an "exclude-result-prefix" 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.
i
- Index of prefix to get in list
- Prefix to be excluded at the given index
literal-result-element in XSLT Specification
getExtensionElementPrefix
public String getExtensionElementPrefix(int i)
throws ArrayIndexOutOfBoundsException
Get and "extension-element-prefix" property.
i
- Index of extension element URI in list
- The extension element URI at the given index
extension-element in XSLT Specification
getExtensionElementPrefixCount
public int getExtensionElementPrefixCount()
Get the number of "extension-element-prefixes" Strings.
- Number of URIs in the list
extension-element in XSLT Specification
getHref
public String getHref()
Get the base identifier with which this stylesheet is associated.
- the base identifier with which this stylesheet is associated.
getImportCount
public int getImportCount()
Get the number of imported stylesheets.
- the number of imported stylesheets.
import in XSLT Specification
getInclude
public Stylesheet getInclude(int i)
throws ArrayIndexOutOfBoundsException
Get the stylesheet at the given in index in "include" list
i
- Index of stylesheet to get
- Stylesheet at the given index
include in XSLT Specification
getIncludeCount
public int getIncludeCount()
Get the number of included stylesheets.
- the number of included stylesheets.
import in XSLT Specification
getKey
public KeyDeclaration getKey(int i)
throws ArrayIndexOutOfBoundsException
Get an "xsl:key" property.
i
- Index of KeyDeclaration element to get
- KeyDeclaration element at given index in list
key in XSLT Specification
getKeyCount
public int getKeyCount()
Get the number of "xsl:key" properties.
- the number of "xsl:key" properties.
key in XSLT Specification
getNamespaceAlias
public NamespaceAlias getNamespaceAlias(int i)
throws ArrayIndexOutOfBoundsException
Get an "xsl:namespace-alias" property.
i
- Index of NamespaceAlias element to get from the list
- NamespaceAlias element at the given index in the list
literal-result-element in XSLT Specification
getNodeType
public short getNodeType()
Get the type of the node. We'll pretend we're a Document.
- getNodeType in interface Node
- getNodeType in interface ElemTemplateElement
- the type of the node: document node.
getOutput
public OutputProperties getOutput(int i)
throws ArrayIndexOutOfBoundsException
Get an "xsl:output" property.
i
- Index of OutputFormatExtended to get
- non-null reference to an OutputProperties object.
output in XSLT Specification
getOutputCount
public int getOutputCount()
Get the number of "xsl:output" properties.
- The number of OutputProperties objects contained in this stylesheet.
output in XSLT Specification
getPreserveSpace
public WhiteSpaceInfo getPreserveSpace(int i)
throws ArrayIndexOutOfBoundsException
Get a "xsl:preserve-space" property.
i
- Index of WhiteSpaceInfo to get
- WhiteSpaceInfo at the given index
strip in XSLT Specification
getPreserveSpaceCount
public int getPreserveSpaceCount()
Get the number of "xsl:preserve-space" properties.
- the number of "xsl:preserve-space" properties.
strip in XSLT Specification
getStripSpace
public WhiteSpaceInfo getStripSpace(int i)
throws ArrayIndexOutOfBoundsException
Get an "xsl:strip-space" property.
i
- Index of WhiteSpaceInfo to get
- WhiteSpaceInfo at given index
strip in XSLT Specification
getStripSpaceCount
public int getStripSpaceCount()
Get the number of "xsl:strip-space" properties.
- the number of "xsl:strip-space" properties.
strip in XSLT Specification
getStylesheet
public Stylesheet getStylesheet()
Get the owning stylesheet. This looks up the
inheritance chain until it calls getStylesheet
on a Stylesheet object, which will return itself.
- getStylesheet in interface ElemTemplateElement
- The owning stylesheet, itself.
getStylesheetComposed
public StylesheetComposed getStylesheetComposed()
Get the owning aggregated stylesheet, or this
stylesheet if it is aggregated.
- getStylesheetComposed in interface ElemTemplateElement
- the owning aggregated stylesheet or itself
getStylesheetParent
public Stylesheet getStylesheetParent()
Get the parent of the stylesheet. This will be null if this
is the root stylesheet.
- the parent of the stylesheet.
getStylesheetRoot
public StylesheetRoot getStylesheetRoot()
Get the root of the stylesheet, where all the tables common
to all stylesheets are kept.
- getStylesheetRoot in interface ElemTemplateElement
- the root of the stylesheet
getXSLToken
public int getXSLToken()
Get an integer representation of the element type.
- getXSLToken in interface ElemTemplateElement
- An integer representation of the element, defined in the
Constants class.
Constants
isAggregatedType
public boolean isAggregatedType()
Tell if this can be cast to a StylesheetComposed, meaning, you
can ask questions from getXXXComposed functions.
- False if this is not a StylesheetComposed
isRoot
public boolean isRoot()
Tell if this is the root of the stylesheet tree.
- False is this is not the root of the stylesheet tree.
replaceTemplate
public void replaceTemplate(ElemTemplate v,
int i)
throws TransformerException
Replace an "xsl:template" property.
This is a hook for CompilingStylesheetHandler, to allow
us to access a template, compile it, instantiate it,
and replace the original with the compiled instance.
ADDED 9/5/2000 to support compilation experiment
v
- Compiled template to replace withi
- Index of template to be replaced
TransformerException
-
setDecimalFormat
public void setDecimalFormat(DecimalFormatProperties edf)
Process the xsl:decimal-format element.
edf
- Decimal-format element to push into stack
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
- A StringVector of prefixes to exclude
literal-result-element in XSLT Specification
setExtensionElementPrefixes
public void setExtensionElementPrefixes(StringVector v)
Set the "extension-element-prefixes" property.
v
- The value to be set for the "extension-element-prefixes"
property: a vector of extension element URIs.
extension-element in XSLT Specification
setHref
public void setHref(String baseIdent)
Set the base identifier with which this stylesheet is associated.
baseIdent
- the base identifier with which this stylesheet is associated.
setLocaterInfo
public void setLocaterInfo(SourceLocator locator)
Set the location information for this element.
- setLocaterInfo in interface ElemTemplateElement
locator
- SourceLocator object with location information
setStylesheetParent
public void setStylesheetParent(Stylesheet v)
Set the parent of the stylesheet. This should be null if this
is the root stylesheet.
v
- the parent of the stylesheet.
setStylesheetRoot
public void setStylesheetRoot(StylesheetRoot v)
Set the root of the stylesheet, where all the tables common
to all stylesheets are kept.
v
- the root of the stylesheet