[Top]
[Prev]
XSLT Transformer
The XSLT Transformer lets you edit XML documents and perform XSLT transformations on them. The
transformer contains the following sections:
- Document
- XML Editor for the document-to-be-transformed.
- Stylesheet
- XML Editor for the stylesheet to apply to the document.
- Result
- The result of the transformation
Tree
Available actions:
An element can be renamed by selecting the node, and then clicking the node label.
- Add
- Creates a new node that will be the following-sibling of the selected node.
- Insert
- Creates a new node that will be the first child of the selected node.
- Cut
- Removes the selected node from the tree and saves it so it can be pasted in the tree.
- Copy
- Saves a duplicate of the selected node so it can be pasted in the tree.
- Paste - Add
- Adds a previously cut or copied node as a following-sibling of the selected node.
- Paste - Insert
- Inserts a previously cut or copied node as a first-child of the selected node.
- View Source
- The xml elements in the document can be edited as plain text in the Source view.
- Available actions:
- Pretty Print
- Adds linefeeds after tags and indents the elements. This will usually
add whitespace to the document for readability.
- Normalize
- Removes whitespace from between the elements.
- Parse
- Re-build the tree view.
- Cancel
- Returns to the tree view without parsing any changes.
Attribute Tab
- Add
- Adds a new attribute for the selected element.
- Delete
- Removes the selected element.
An attribute's name or value can be changed by selecting it and then clicking on it.
Content Tab
The content for text, processing-instructions and comments can be changed in this tab.
Pattern/Expression
The text entered into the Pattern/Expression box can be used to:
- Highlight nodes in the document that match the specified xsl pattern for
the selected document node.
- Evaluate the specified xsl expression relative to the selected document node.
Available actions:
- Pattern
- Highlight the specified pattern
- Evaluate
- Evaluate the specified expression
The Stylesheet tab contains the XSL stylesheet that will be used to transform the
document in the Document tab.
The actions available in this tab have the same usage as in the Document tab, as well
as:
- Transform
- Applies the stylesheet to the XML document defined in the Document
tab.
The Result tab displays the result of a transformation.
Available actions:
- Java to XML
- Creates an XML structure from a Java source program.
- SQL to XML
- Not implemented