All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xs.xs_XslElement

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_Element
                           |
                           +----xs.xs_XslElement

public class xs_XslElement
extends xg_Element
An XML element to represent the root 'xsl' element of an XSL stylesheet.


Variable Index

 o RegisteredName
The element type name normally used in XML for this sort of element.
 o TheStylesheetDefn
Vector of the rules defined in this stylesheet.

Constructor Index

 o xs_XslElement()
Construct an xsl stylesheet element with no type and no name.
 o xs_XslElement(String)
Construct an xsl stylesheet element with a name.

Method Index

 o applyStyle(xg_Element, Writer, JProgressBar)
Apply this style to the given source root element, and write the results to the InputResultsWriter.
 o getStylesheetDefn()
Get the stylesheet definition.
 o toString()
Return a string representation of the element (intended for use as debug output).
 o verify()

Verify that this node is correct (ie.

Variables

 o TheStylesheetDefn
 protected xs_StylesheetDefn TheStylesheetDefn
Vector of the rules defined in this stylesheet.

 o RegisteredName
 public static final String RegisteredName
The element type name normally used in XML for this sort of element.

Constructors

 o xs_XslElement
 public xs_XslElement()
Construct an xsl stylesheet element with no type and no name.

 o xs_XslElement
 public xs_XslElement(String InputNodeName)
Construct an xsl stylesheet element with a name.

Parameters:
InputNodeName - The name of the element

Methods

 o verify
 public void verify() throws xg_VerificationException

Verify that this node is correct (ie. internally correct and/or consistent with other nodes - such as its parent). The node is OK iff it has a at least one 'rule' child.

Throws: xg_VerificationException
Description of verification problem
Overrides:
verify in class xg_Node
 o applyStyle
 public void applyStyle(xg_Element InputSourceRootElement,
                        Writer InputResultsWriter,
                        JProgressBar InputProgressBar) throws xs_StyleException
Apply this style to the given source root element, and write the results to the InputResultsWriter.

Parameters:
InputSourceRootElement - The pre-parsed source document
InputResultsWriter - The writer to which to write the results of applying a stylesheet to the source node
InputProgressBar - Bar on which to show progress (as measured by the end offset of each node after it is processed).
Throws: xs_StyleException
Error applying style
 o getStylesheetDefn
 public xs_StylesheetDefn getStylesheetDefn()
Get the stylesheet definition.

Returns:
The stylesheet definition
 o toString
 public String toString()
Return a string representation of the element (intended for use as debug output).

Returns:
String representing the node's name.
Overrides:
toString in class xg_Element

All Packages  Class Hierarchy  This Package  Previous  Next  Index