org.exolab.adaptx.xslt
public class XSLTStylesheet extends XSLObject
Field Summary | |
---|---|
static String | XSLT_NAMESPACE
The current (and ever changing) XSLT namespace
|
Constructor Summary | |
---|---|
XSLTStylesheet()
Create a new XSLStylesheet
|
Method Summary | |
---|---|
void | addAttributeSet(AttributeSet attributeSet)
Adds the given AttributeSet to this stylesheet |
void | addId(String idAttr)
Adds a new Id to the list of IDs for this stylesheet for all elements. |
void | addId(String idAttr, String elementType)
Adds a new Id for the specified element type to the list of
IDs for this element type stylesheet. |
void | addId(Id id)
Adds a new Id for the specified element type to the list of
IDs for this element type stylesheet. |
void | addParam(Param param)
Adds a new top-level parameter to this stylesheet.
|
void | addScript(XSLScript script)
Adds a new global level XSLScript to this stylesheet.
|
void | addTemplate(TemplateRule template)
Adds a new TemplateRule to the list of rules for this stylesheet. |
void | addVariable(Variable variable)
Adds a new top-level Variable to this stylesheet |
boolean | appendAction(XSLObject xslObject)
Adds the given XSLObject to this Stylesheet. The following elements are valid: xsl:attribute-set xsl:constant xsl:id xsl:import xsl:include xsl:macro xsl:template xsl:preserve-space xsl:strip-space The following proprietary elemens are also valid: xsl:script |
int | countTemplates() |
AttributeSet | getAttributeSet(String setName) |
Hashtable | getAttributeSets()
Returns all of the attribute-sets for this stylesheet |
String | getDocumentBase()
Returns the document base for this stylesheet |
List | getExtensionElementPrefixes()
Returns an enumeration of the declared namespace prefixes
for extension elements
|
String | getHref() |
Hashtable | getIds() |
List | getLocalTemplates() |
TemplateRule | getNamedTemplate(String name)
Returns the TemplateRule whose name matches the given name argument.
|
Enumeration | getNamedTemplates()
Returns an enumeration of templates that have names |
XSLOutput | getOutput()
Returns the XSLOutput Object for controlling the serialization
of Result Documents created using this Stylesheet |
Param | getParameter(String name)
Returns the top-level parameter associated with the given name |
Enumeration | getParameters()
Returns an Enumeration of the top-level parameters |
String | getQuotedNamespace(String namespace)
Returns the namespace that the given namespace argument
quotes |
String | getResultDocType() |
String | getResultNamespace() |
List | getScripts()
Retrieves the set of global level scripts for this stylesheet |
TemplateRule[] | getTemplates() |
URILocation | getURILocation()
Returns the URILocation for this stylesheet, or null, if
no location was set.
|
Variable | getVariable(String name)
Returns the variable associated with the given name |
Enumeration | getVariables()
Returns an Enumeration of the top-level variables |
String | getXSLNSPrefix()
Returns the XSL Namespace Prefix for this XSL Stylesheet |
void | importFrom(XSLTStylesheet xsl)
Imports the given XSLStylesheet to this XSLStylesheet. |
void | importFrom(XSLImport xslImport)
Imports the XSLStylesheet referenced by the given XSLImport
to this stylesheet. |
void | includeFrom(XSLTStylesheet xsl)
Includes the given XSLStylesheet to this XSLStylesheet. |
boolean | isAllowableImport(String filename)
Checks the given filename against this Stylesheet's href and previously
imported stylesheets to determine if the file represented
by the given filename can be imported in this stylesheet. |
boolean | isStripSpaceAllowed(String name)
Determines whether or not whitespace stripping is allowed
for Elements with the given name |
void | preserveSpace(String name)
Preserves the whitespace of Elements with the given name.
|
void | setAttribute(String name, String value) |
void | setURILocation(URILocation location)
Sets the URILocation for this stylesheet
|
void | stripSpace(String name)
Removes the ignorable whitespace from Elements with the given name.
|
Parameters: attributeSet the AttributeSet to add
Parameters: idAttr the id attribute to add
Parameters: idAttr the ID to add elementType the tag name of the element that id is an ID for Note: the wild card "*" will match all element types
Parameters: id the Id to add
Parameters: param the top-level parameter to add
Throws: XSLException when adding a parameter with the same name as a previously declared parameter, or variable
Parameters: script the XSLScript to add
Parameters: rule the TemplateRule to add
Throws: XSLException when a template already exists with the given name
Parameters: variable the Variable to add
Throws: XSLException when adding a Variable with the same name as a previously added Variable or Parameter.
xsl:attribute-set xsl:constant xsl:id xsl:import xsl:include xsl:macro xsl:template xsl:preserve-space xsl:strip-space The following proprietary elemens are also valid: xsl:script
Returns: the number of templates contained in this stylesheet, including imported rules
Parameters: setName the name of the attribute set to return
Returns: the AttributeSet for the given name, or null if not found.
Returns: all of the AttributeSets for this stylesheet
Returns: the document base for this stylesheet
Returns: the href for this stylesheet
Returns: a Vector of all the ID attributes for this Stylesheet
Returns: a Vector of the TemplateRule objects for this stylesheet, does not include imported TemplateRules.
Parameters: name the name of the NamedTemplate to return
Returns: the TemplateRule whose name matches the given name argument
Since: WD-xslt-19990421
Returns: an enumeration of templates that have names
Returns: the Output Object for controlling the serialization of Result Documents created using this Stylesheet
Parameters: name the name of the top-level parameter to return
Returns: the top-level parameter associated with the given name
Returns: the Enumeration of top-level parameter declarations
Parameters: namespace the namespace to resolve
UNKNOWN: the resolved namespace or the given namespace if it does not quote any other namespaces.
Returns: a List of XSLScript Objects
Returns: an array of all the TemplateRule objects for this stylesheet, including imported templates
Returns: the URILocation for this stylesheet
See Also: getHref getDocumentBase
Parameters: name the name of the variable to return
Returns: the variable associated with the given name
Returns: the Enumeration of top-level variable declarations
Returns: the XSL Namespace Prefix for this XSL Stylesheet
Parameters: xsl the XSLStylesheet to import
Throws: XSLException
Parameters: xslImport the XSLImport referencing the appropriate XSLStylesheet to import.
Throws: XSLException
Parameters: xsl the XSLStylesheet to include
Throws: XSLException
See Also: isAllowableInclusion
Returns: true if the given filename is allowed to be included in this XSLStylesheet, otherwise false.
Parameters: name the name of the Element
See Also: preserveSpace stripSpace
Parameters: name the name of the Element to preserve whitespace of.
See Also: stripSpace
See Also: org.exolab.adaptx.xslt.XSLElement
Parameters: location the URILocation of this stylesheet
Parameters: name the name of the Element to strip whitespace from
See Also: preserveSpace