Free Xslt Stylesheet Design Tool
Utility Tools
CHAPTER 5
XSL Editor
This chapter describes the facilities that the Novell exteNd Director development environment provides to work with XSL files. It contains the following topics:
-
About XSL
-
XSL in the development environment
-
Creating and opening XSL files
-
Using the XSL Editor
About XSL
XSL (eXtensible Stylesheet Language) is a standard language for expressing style sheets. You can develop and use XSL style sheets to control how the contents of XML documents are displayed.
XSL includes the following features:
-
XSLT, a language for transforming XML documents
-
XPath, a language for specifying parts of an XML document
-
XSL Formatting Objects, a vocabulary for formatting XML documents
The complete XSL standard can be found at www.w3.org/Style/XSL.
The power of XSLT Document transformation is the most important feature of XSL. The XSLT language was originally provided to perform complex styling operations, but you are now more likely to use it as a general purpose XML processing language. In particular, XSLT is useful for transforming an XML document into a different XML, XHTML, HTML, or other document.
XSLT works by transforming the XML input document (represented as a source tree) into the output document (represented as a result tree). You define templates that:
-
Select (via XPaths) which parts of the source to process
-
Specify the transformations to perform on those parts
XSL in the development environment
The exteNd Director development environment provides the following tools for working with XSL:
-
XSL File Wizard for creating an XSL (style sheet) file
-
XSL Editor for developing and testing an XSL file, including the transformations (XSLT processing) you want it to perform
Required files With either tool, you'll need the following files before you begin (unless you plan to write your XSLT code manually):
File | Purpose |
---|---|
XML source document | Provides the XML to be transformed |
XML result document | Provides a sample of the XML to be produced; you'll map the source document's XML tree to the result document's XML tree in order to generate the XSLT code you need |
Creating and opening XSL files
You can create new XSL files or work with existing ones.
To create a new XSL file:
-
Select File>New>File.
-
On the XML tab, select XSL file.
-
To create a blank XSL file, deselect Use Wizard and click OK. An empty XSL file is created and displayed in the XSL Editor.
To use the XSL File Wizard, select Use Wizard and click OK. The XSL File Wizard displays. Go through the wizard as follows.
-
Specify the name of the XSL file and click Next.
-
Specify the location of the XSL file and click Next.
-
Specify the XML source document and click Next.
-
Specify the XML result document and click Finish.
The XSL Editor displays with your new XSL file open.
To open an XSL file:
-
Select File>Open.
-
In the Open dialog, select the XSL file and click Open.
The file extension must be .XSL. The selected file opens in the XSL Editor and the XSL Editor menu appears on the menu bar.
Using the XSL Editor
The XSL Editor provides two views for working with an XSL file:
-
The Designer tab displays a set of panes that work together to help you develop and test your XSL file and its XSLT processing in a graphical way:
-
You map nodes from the Source tree pane to nodes in the Result tree pane to create template rules
-
The template rules you create display in the Transformation pane
-
When you test your transformations, the Debugging pane displays the output
-
-
The XSL Source View tab displays a source editor that you can use to examine and edit your XSLT code directly. The XSL Source View offers the same standard text editing features that are available in the XML Editor's Source View (for details, see XML Editors).
Here's an example of using the XSL Editor's Designer to develop a style sheet that transforms one XML file (containing information about birds) into another XML file with a different format:
Copyright © 2004 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved. more ...
Free Xslt Stylesheet Design Tool
Source: https://www.novell.com/documentation/extend52/Docs/help/Director/books/utoolsXSLEditor.html
Posted by: gallofolook.blogspot.com
0 Response to "Free Xslt Stylesheet Design Tool"
Post a Comment