Stylus Studio

Use Stylus Studio to develop an XML application. To create a new

  • XML Converter, select File > New > Convert to XML
  • Relational data source, select File > New > DB-to-XML Data Source.
  • XML document, select File > New > XML Document. To open an XML document, select File > Open and navigate to the document you want to open.
  • XQuery, select File > New > XQuery File.
  • XSLT stylesheet manually, select File > New > XSLT: Text Editor. To open a stylesheet, select File > Open and navigate to the stylesheet you want to open.
  • XSLT stylesheet by mapping the schema of one XML document to the schema of another XML document, select File > New > XSLT: Mapper.
  • Web Service call, select File > New > Web Service Call.

 

Support for Convert to XML, relational databases, XQuery, and Web services is available only in Stylus Studio XML Professional Edition.

To debug an XSLT stylesheet or Java file, open the file you want to debug.

If you want, you can create a project to help you organize the files in your application. In the Project window, right-click to display the project management shortcut menu.

Buttons

New Document/File creates one of the following:

DB-to-XML data source

DTD schema

Java server page

Java source file

Web service call

XML document

XML Schema

XSLT stylesheet (using the XSLT mapper)

XSLT stylesheet (using the text editor)

XSLT stylesheet (using HTML WYSIWYG)

XQuery

The image that appears in the button to the left of the down arrow indicates the last type of document you created. Click the image to create that type of document. Or, click the down arrow to display a drop-down list of the documents you can create, and click the type you want to create.

Open opens a document or file that you want to operate on. See Open and Save As.

Save saves the active document or file that is open in Stylus Studio. To rename and save a document or file, select File > Save As from the Stylus Studio menu bar.

Toggle Project Window displays and hides the Project window.

Add Document to Project adds an open file to a project.

Add File to Project adds a closed file to a project.

Add File From SCC adds a file under source control to a project.

Cut deletes the selected object.

Copy makes a copy of the selected object.

Paste inserts the object you previously copied.

Reload refreshes the active document in Stylus Studio. If the document has been changed outside Stylus Studio, the updated document now appears in Stylus Studio.

Undo undoes the last change to the active document.

Redo redoes the change that you undid in the active document.

Print sends the active document to the default printer.

About displays information about your version of Stylus Studio.

Toggle Bookmark displays or hides a bookmark at the beginning of the current line.

Next Bookmark moves the focus to the next bookmark.

Previous Bookmark moves the focus to the previous bookmark.

Clear Bookmark removes bookmarks in the active document.

Find displays a dialog box that allows you to specify a string search operation. You can specify that you want to search inside only element tags, element contents, attribute tags, or attribute values. You can also specify whether to match whole words, case, or regular expressions.

Replace displays a dialog box that allows you to specify a search and replace operation.

Comment/Uncomment Selection inserts or removes comment flags before and after the selected text. This button acts as a toggle.

Go to a specified location moves the cursor within the active document to a line you specify.

Go to matching tag moves the cursor within the active document to the closing tag or opening tag for the tag the cursor is in. The cursor must be in an XML tag for this button to be active.

Get Latest Version refreshes the current document from your source code control system.

Check Out checks out a file that is under source control. The file must belong to a project. See Using Stylus Studio with Source Control Applications.

Check In checks in a file that is under source control.

Undo Check Out cancels the checking out of a file under source control.

Add to Source Control puts a document into your source control system.

Remove From Source Control removes a document from your source control system.

Show History displays the source control operations performed on a document.

Show Differences displays the changes to a file since it was checked out.

Refresh Status updates source control file status.

Source Control opens your source code control application.

Start Debugging starts or continues processing. If processing reaches a breakpoint, processing is suspended.

Pause suspends program execution.

Toggle Breakpoint toggles display of a breakpoint at the beginning of the line the cursor is in.

Step into steps into the current statement.

Step over steps over the current statement.

Step out steps out of the current function.

Run to Cursor continues processing until the processor reaches the line with the cursor.

Stop Debugging stops processing.

Watch toggles display of the Watch window.

Variables toggles display of the Variables window.

Call Stack toggles display of the Call Stack window.

Output Window toggles display of the Output window.

Attach connects to a JVM. You can specify a host and a port. The default is localhost and 8000.

Breakpoints displays a list of breakpoints in all open files. You can selectively remove one or more, remove them all, or jump to one of them.

For More Information

Chapter 1Getting Started with Stylus Studio

Updating an XML Document-Getting Started

Working with Stylesheets - Getting Started

Using the XSLT Mapper - Getting Started

Defining a DTD - Getting Started

Defining an XML Schema Using the Diagram Tab - Getting Started

Creating a DB-to-XML Data Source

Chapter 11Composing Web Service Calls

 
Free Stylus Studio XML Training: