General Information

Copyright

Conventions in This Document

Typographical Conventions

Syntax Notation

Information Alerts

Home Edition Alerts

Technical Support

About Stylus Studio Home Edition

In This Chapter

Starting Stylus Studio

Getting Updates

Getting Help

Updating an XML Document-Getting Started

Opening a Sample XML Document

Updating the Text of a Sample Document

Displaying Line Numbers

Adding Elements in the Text View of a Sample Document

Copying and Pasting in the Text View of a Sample Document

Undoing Operations in the Text View of a Sample Document

Inserting Indents in the Text View of a Sample Document

Querying in the Text View of a Sample Document

Deleting a Query

Updating the Schema of a Sample Document

Creating a Sample Schema

Defining a Sample Element

Adding an Element Reference to a Sample Schema

Defining an Entity in a Sample Schema

Exploring Other Features in a Sample Schema

Updating the Tree Representation of a Sample Document

Adding an Element to a Sample Document Tree

Changing an Element's Data in a Sample Document Tree

Adding Attributes and Other Node Types to a Sample Document Tree

Adding an Entity Reference to a Sample Document Tree

Updating a Sample Document Using the Grid Tab

Modifying Values

Moving Around the Grid

Working with Stylesheets - Getting Started

Opening a Sample Stylesheet

XSLT Stylesheet Editor Quick Tour

Parts of the XSLT Editor

Exploring the XSLT Source Tab

Exploring the Params/Other Tab

Exploring the WYSIWYG Tab

XSLT Scenarios

Working with Scenarios

About Preview

Working with a Sample Result Document

Making a Static Web Page Dynamic by Editing XSLT

Importing a Sample HTML File

Creating the video Template

Instantiating the video Template

Making Titles Dynamic

Making Images Dynamic

Making Summaries Dynamic

Stylesheets That Generate HTML - Getting Started

Video Demonstrations of the XSLT WYSIWYG Editor

Descriptions

System Requirements

Getting Started with the XSLT WYSIWYG Editor

Creating Static HTML

Defining Dynamic Contents

Adding a Table with Dynamic Contents

Using the Properties Window

Making a Static Web Page Dynamic Using the WYSIWYG Editor

Before You Begin

Making Repeating Table Rows in the WYSIWYG Editor

Making Contents Dynamic in the WYSIWYG Editor

Rendering Images as Dynamic Content in the WYSIWYG Editor

Using Conditional If Processing in the WYSIWYG Editor

Using the XSLT Mapper - Getting Started

Opening the XSLT Mapper

Mapping Nodes in Sample Files

Saving the Stylesheet and Previewing the Result

Deleting Links in Sample Files

Defining Additional Processing in Sample Files

Debugging Stylesheets - Getting Started

Setting Up Stylus Studio to Debug Sample Files

Inserting a Breakpoint in the Sample Stylesheet

Gathering Debug Information About the Sample Files

The Variables Window

The Call Stack Window

The Watch Window

Ending Processing During a Debug Session

Defining a DTD - Getting Started

Process Overview

Creating a Sample DTD

Defining Data Elements in a Sample DTD

Defining the Container Element in a Sample DTD

Defining Structure Rules in a Sample DTD

Examining the Tree of a Sample DTD

Defining an XML Schema Using the Diagram Tab - Getting Started

Introduction to the Diagram Tab

Diagram Pane

Text Pane

Definition Browser

Editing Tools of the Diagram Tab

Menus and Tool Bars

In-place Editing

Drag-and-Drop

QuickEdit

Refactoring

Description of Sample XML Schema

Defining a complexType in a Sample XML Schema in the Diagram View

Defining the Name of a Sample complexType in the Diagram View

Adding an Attribute to a Sample complexType in the Diagram View

Adding Elements to a Sample complexType in the Diagram View

Adding Optional Elements to a Sample complexType in the Diagram View

Adding an Element That Contains Subelements to a complexType in the Diagram View

Choosing the Element to Include in a Sample complexType in the Diagram View

Defining Elements of the Sample complexType in the Diagram View

Opening Files in Stylus Studio

About Opening Files

Standard File Types

Changing the Default Module When Opening a File

Opening Files Stored on Berkeley DB XML

How to Open a Locally Accessible File

How to Open a File on a WebDAV or FTP Server

Opening Files from a Browser

Working with Projects

Displaying the Project Window

Displaying the Project Window

Displaying Path Names

Other Documents

Creating Projects and Subprojects

Saving Projects

Opening Projects

Recently Opened Projects

Associating .prj Files with Stylus Studio

Adding Files to Projects

When Files are Open in Stylus Studio

When Files are Closed

Adding Multiple Files

Copying Projects

Rearranging the Files in a Project

Removing Files from Projects

Closing and Deleting Projects

Closing

Deleting

Using Stylus Studio with Source Control Applications

Tested Source Control Applications

Prerequisites

Recursive Selection

Using Stylus Studio with ClearCase

Using Stylus Studio with Zeus CVS

Specifying Advanced Source Control Properties

Customizing Toolbars

Toolbar Groups

Showing/Hiding Toolbar Groups

Changing Toolbar Appearance

Adding and Removing Buttons

Creating a New Toolbar

Specifying Stylus Studio Options

Associating File Type Extensions with Stylus Studio Tools

Adding an Association

Deleting Associations

Registering Stylus Studio as the Default Application

Unregistering

Modifying Java Options

About Java Virtual Machine Options

About Java Compiler Options

About External JVM Options

How to Modify Java Settings

Setting Module Options

XML Diff

XML Editor

XSLT Editor

Java

Defining Custom Tools

Defining Keyboard Shortcuts

How to Define a Keyboard Shortcut

Deleting a Keyboard Shortcut

Using Stylus Studio from the Command Line

Invoking Stylus Studio from the Command Line

Applying a Stylesheet from the Command Line

Executing an XQuery from the Command Line

Validating XML from the Command Line

Managing Stylus Studio Performance

Troubleshooting Performance

Changing the Schema Refresh Interval

Checking for Modified Files

Changing the Recursion Level or Allocated Stack Size

Automatically Opening the Last Open Files

Creating XML Documents

Converting Text Files to XML Documents

Alternative to Document Wizards

About CSV File Contents

Delimiting Commas

Structure of Resulting XML Documents

About the Default Values

Running the Convert CSV to XML and Convert Fixed-Width to XML Document Wizards

Specifying User-Defined Columns

Updating XML Documents

Choosing a View

For More Information

Saving Your Work

Ensuring Well-Formedness

Reverting to Saved Version

Updating Java Server Pages as XML Documents

Updating XML Documents Using the Text Editor

Common Text Editing Functions and Tools

Sense:X

Indent

Line Wrap

Font

Comments

Bookmarks

Search

Use of Colors in the Text Tab

Updating DOM Tree Structures

Displaying All Nodes in the Tree View

Adding a Node in the Tree View

Deleting a Node in the Tree View

Moving a Node in the Tree View

Changing the Name or Value of a Node in the Tree View

Obtaining the XPath for a Node

Updating XML Documents Using the Grid

Features of the Grid Tab

Layout of the Grid Tab

Expanding and Collapsing Nodes

Collapsing Empty Nodes

Renaming Nodes

Resizing Columns

Showing Row Tag Names

Moving Around the Grid Tab

Selecting Items in the Grid

How Grid Changes Affect the XML Document

Types of Changes that Affect the Document

Working with Rows

Reordering Rows

Adding and Deleting Rows

Working with Columns

Selecting a Column

Adding Columns

Deleting Columns

Reordering Columns

Renaming Columns

Changing a Value

Working with Tables

Adding a Nested Table

Moving a Nested Table

Deleting a Table

Sorting a Table

Copying a Table as Tab-Delimited Text

Diffing Folders and XML Documents

Overview

Sources and Targets

The Diff Configuration File

What Diffs Are Calculated?

Tuning the Diffing Algorithm

When Does the Diff Run?

Running the Diff Manually

Symbols and Background Colors

Diffing Folders

Features

How to Diff Folders

How to Diff Documents from the Diff Folders Dialog Box

The XML Diff Viewer

Overview

The XML Diff Viewer Toolbar

Tools for Working with Documents

Removing a Target Document

Diffing a Pair of XML Documents

How to Diff a Pair of Documents

Diffing Multiple Documents

Document Focus

Symbols Used in the Target Document Window

How to Diff Multiple Documents

Modifying Default Diff Settings

Opening the Options Dialog Box

Engine Settings

Presentation Options

Running the Diff Tool from the Command Line

Restrictions

Usage

Using Schemas with XML Documents

Associating an External Schema With a Document

Having Stylus Studio Generate a Schema

Validating XML Documents

Updating a Document's Schema

Removing the Association Between a Document and a Schema

Querying XML Documents Using XPath

Steps for Querying a Document

Displaying Query Results

Saving Query Results

Moving Around in XML Documents

Line Numbers

Bookmarks

Tags

Find

Learning About Regular Expressions

Printing XML Documents

Saving XML Documents

Overview

File Support

Using Convert to XML

Other Ways to Convert Files to XML

Choosing an Input File

The Convert to XML Editor

Document Grid

Example - .txt Files

Display of Delimiting and Control Characters

Field Names

Document Grid Display Features

Moving Around the Grid

Properties Window

How Properties are Organized

Properties for Fixed-Width and Line-Oriented Input Files

Schema Pane

Parts of an Input File

Regions

Region Types

Managing Regions

Rows

Fields

Component and Sub-Component Fields

Working with Regions

Converting the Region Type

How to Convert a Region Type

Adjusting Fixed-Width Regions

Example

Defining and Joining Regions

Defining a Region

Joining Regions

Controlling Region Output

Working with Fields

Naming Fields

Using the Element Name Source Property

More About Using Rows for Field Names

How to Name Fields

Defining Fields

Creating Notes for Fields

Component and Sub-Component Fields

Controlling XML Output

Specifying Element Names

Specifying Format

Omitting Regions and Fields, and Rows

Pattern Matching

Example

Sample Regular Expressions

Specifying Multiple Match Patterns

Working with Nodes

Using Lookup Lists

Defining Lookup Lists

Working with Lookup Lists

Using Key=Value Characters

Creating a Convert to XML Converter

Specifying File Settings

How to Create a Converter

Using Converters in Stylus Studio

Types of Converters

How to Open a File Using a Converter

Invoking an Adapter Programmatically

Adapter URLs

Where Adapter URLs are Displayed in Stylus Studio

The StylusFile Object

Constructing Your Own Adapter URL

Using the URL in the Select XML Converter Dialog Box

Using the URL in the Properties Window

Example - demo.bat

Demonstration Files

demo.java

More About the Stylus Studio File System Java API

Javadoc

Properties Reference

Input File Properties

XML Output File Properties

Region Properties

Row Properties

Field Properties

Type-Specific Properties

Specifying Control Characters

Getting Started with XSLT

What Is XSLT?

What Is a Stylesheet?

Example of a Stylesheet

About Stylesheet Contents

What Is a Template?

Contents of a Template

Determining Which Template to Instantiate

How the select and match Attributes Are Different

How the XSLT Processor Applies a Stylesheet

Instantiating the First Template

Selecting Source Nodes to Operate On

Controlling the Order of Operation

Omitting Source Data from the Result Document

When More Than One Template Is a Match

When No Templates Match

Controlling the Contents of the Result Document

Specifying Result Formatting

Creating New Nodes in the Result Document

Controlling White Space in the Result

Specifying XSLT Patterns and Expressions

Examples of Patterns and Expressions

Frequently Asked Questions About XSLT

Sources for Additional XSLT Information

Benefits of Using Stylus Studio

Structural Data View

Sophisticated Editing Environment

XSLT and Java Debugging Features

Integrated XML Parser/XSLT Processor

Tutorial: Understanding How Templates Work

Creating a New Sample Stylesheet

Understanding How the Default Templates Work

Instantiating the Template That Matches the Root Node

Instantiating the Root/Element Default Template

Instantiating the Text/Attribute Default Template

Illustration of Template Instantiations

Editing the Template That Matches the Root Node

Creating a Template That Matches the book Element

Creating a Template That Matches the author Element

Working with Stylesheets

Opening Stylesheets

About the XSLT Editor

Creating Stylesheets

Specifying Stylesheet Parameters and Options

Applying Stylesheets

About Applying Stylesheets

Results of Applying a Stylesheet

Applying Stylesheets to Large Data Sets

Creating a Scenario

Cloning Scenarios

Saving Scenario Meta-Information

Applying a Stylesheet to Multiple Documents

Applying the Same Stylesheet in Separate Operations

Applying a Stylesheet to Multiple Documents in One Operation

About Stylesheet Contents

Contents Provided by Stylus Studio

Contents You Can Add

Updating Stylesheets

Dragging and Dropping from Schema Tree into XSLT Editor

Using Sense:X Automatic Tag Completion

Using Sense:X to Ensure Well-Formed XML

Using Standard Editing Tools

Saving Stylesheets

Using Updated Stylesheets

Creating Stylesheets That Generate HTML

Descriptions of WYSIWYG Terms

Inserting Contents in the HTML Editor

Displaying a Repeating Element in the HTML Editor

Adding Conditional Processing in the HTML Editor

Specifying Choose Conditional Processing in the HTML Editor

Specifying If Conditional Processing in the HTML Editor

Instantiating Templates in the HTML Editor

Calling a Named Template

Specifying Properties and Attributes in the HTML Editor

Specifying Extension Functions in Stylesheets

Using an Extension Function in Stylus Studio

Basic Data Types

Declaring an XSLT Extension Function

Working with XPath Data Types

Declaring an Extension Function Namespace

Invoking Extension Functions

Finding Classes and Finding Java

Debugging Stylesheets That Contain Extension Functions

Working with Templates

Viewing Templates

Viewing a List of Templates

Viewing a Specific Template

Checking if a Template Generates Output

Using Stylus Studio Default Templates

Contents of a New Stylesheet Created by Stylus Studio

About the Root/Element Built-In Template

About the Text/Attribute Built-In Template

Creating Templates

Saving a Template

Applying Templates

Updating Templates

Deleting Templates

Using an External XSLT Processor

How to Use an External Processor

Passing Parameters

Options for Using External Processors

Xalan-J XSLT Processor Options

Custom XSLT Processor Options

Postprocessing Result Documents

Generating Formatting Objects

Developing Stylesheets That Generate FO

Troubleshooting FOP Errors

Viewing the FO Sample Application

Deploying Stylesheets That Generate FO

Example

Using Apache FOP to Generate NonPDF Output

Generating Scalable Vector Graphics

About SVG Viewers

Running the SVG Example

XSLT Instructions Quick Reference

xsl:apply-imports

xsl:apply-templates

Format

Description

Example

xsl:attribute

Format

Description

Example

xsl:attribute-set

Format

Description

Example

xsl:call-template

Format

Description

xsl:choose

Format

Description

xsl:comment

Format

Description

Example

xsl:copy

Format

Description

Example

xsl:copy-of

Format

Description

xsl:decimal-format

Format

Description

xsl:element

Format

Description

Example

xsl:fallback

xsl:for-each

Format

Description

Example

xsl:if

Format

Description

Example

xsl:import

Format

Description

xsl:include

Format

Description

xsl:key

Format

Description

xsl:message

Format

Description

xsl:namespace-alias

Format

Description

xsl:number

Format

Description

Example

xsl:otherwise

xsl:output

Format

Description

xsl:param

Format

Description

xsl:preserve-space

xsl:processing-instruction

Format

Description

Example

xsl:sort

Format

Description

Example

xsl:strip-space

xsl:stylesheet

Format

Description

xsl:template

Format

Description

xsl:text

Format

Description

Examples

xsl:transform

xsl:value-of

Format

Description

Example

xsl:variable

Format

Description

xsl:when

xsl:with-param

Format

Description

Example

Overview of the XSLT Mapper

Example

Graphical Support for Common XSLT Instructions and Expressions

Setting Options for the XSLT Mapper

Ensuring That Stylesheets Output Valid XML

Steps for Mapping XML to XML

Source Documents

Choosing Source Documents

Source Documents and XML Instances

Types of associations

Source document icons

How to change a source document association

How to Add a Source Document

How to Remove a Source Document

How Source Documents are Displayed

Document structure symbols

Getting source document details

Target Structures

Using an Existing Document

Building a Target Structure

Modifying the Target Structure

Adding a Node

Removing a Node

Mapping Source and Target Document Nodes

Preserving Mapper Layout

Left and Right Mouse Buttons Explained

How to Map Nodes

Removing Source-Target Maps

Working with XSLT Instructions in XSLT Mapper

What XSLT Instructions Are Represented Graphically

Instruction Block Ports

Specifying Values for Ports

Understanding Input Ports

Specifying Values for Input Ports

Red Input Ports

The Flow Port

Adding an Instruction Block to the XSLT Mapper

Notes About Creating Instruction Blocks

Editing xsl: Instruction Properties

xsl:if and xsl:choose

Editing xsl:choose Instruction Properties

Processing Source Nodes

XPath Function Blocks

Parts of a Function Block

Types of Function Blocks

XPath Mathematical Functions

Creating a Function Block

Deleting a Function Block

Logical Operators

Setting a Text Value

Example

How to Set a Text Value on the Mapper Canvas

How to Set a Text Value on the Target Node

Defining Java Functions in the XSLT Mapper

About Adding Java Class Files

Creating and Working with Templates

What Happens When You Create a Template

How to Create a Named or Matched Template

Creating an XSLT Scenario

Overview of Scenario Features

Specifying XML Source Documents

Setting Values for Global Parameters

Choosing an XSLT Processor

Performance Metrics Reporting

Performing Post-Processing

How to Create a Scenario

How to Run a Scenario

How to Clone a Scenario

Steps for Debugging Stylesheets

Using Breakpoints

Inserting Breakpoints

Removing Breakpoints

Start Debugging

Viewing Processing Information

Watching Particular Variables

Evaluating XPath Expressions in the Current Processor Context

Obtaining Information About Local Variables

Determining the Current Context in the Source Document

Displaying a List of Process Suspension Points

Displaying XSLT Instructions for Particular Output

Using Bookmarks

Determining Which Template Generated Particular Output

Determining the Output Generated by a Particular Template

Profiling XSLT Stylesheets

Enabling the Profiler

Displaying the XSLT Profiler Report

Handling Parser and Processor Errors

Debugging Java Files

Requirements for Java Debugging

Setting Options for Debugging Java

Using the Java Editor

Stylus Studio and JVM

Example of Debugging Java Files

Setting Up to Debug Sample Java/XSLT Application

Inserting a Breakpoint in the Sample Java/XSLT Application

Gathering Debug Information About the Sample Java/XSLT Application

What Is an XML Schema?

Reference Information

Creating an XML Schema in Stylus Studio

Creating Your Own XML Schema

Creating XML Schema from a DTD

Creating XML Schema from an XML Document

Displaying the New XML Schema

Working with XML Schema in Stylus Studio

Validating XML Schema

Updating XML Schema Associated with a Document

Using XML Schema in XQuery and XSLT Mapper

Opening

Printing

Schemas That Have Schemas

Node Properties

Working with Properties in the Diagram

Getting Started with XML Schema in the Tree View

Description of Sample XML Schema

Tips for Adding Nodes

Defining a complexType in a Sample XML Schema in the Tree View

Defining the Name of the Sample complexType in the Tree View

Adding an Attribute to a Sample complexType in the Tree View

Adding Elements to a Sample complexType in the Tree View

Adding Optional Elements to a Sample complexType in the Tree View

Adding an Element That Contains Subelements to a complexType in the Tree View

Choosing the Element to Include in the Sample complexType in the Tree View

Defining Elements of the Sample complexType in the Tree View

Defining simpleTypes in XML Schemas

About simpleTypes in XML Schemas

Examples of simpleTypes in an XML Schema

Defining a simpleType in the Diagram View

Before You Begin

Defining an Atomic simpleType

Specifying a Restriction for a simpleType - QuickEdit

Specifying a Restriction for a simpleType - Manually

Defining List and Union simpleTypes

Defining a simpleType in the Tree View

About Facet Types for simpleTypes

Defining List and Union simpleTypes in the Tree View

Defining complexTypes in XML Schemas

Defining complexTypes That Contain Elements and Attributes - Diagram View

Adding Nodes to a complexType

Choosing an Element

Including All Elements

Specifying the Sequence of Elements

Reordering Nodes

Combining the Sequence and Choice Modifiers

Defining complexTypes That Contain Elements and Attributes - Tree View

Defining complexTypes That Mix Data and Elements

Diagram View

Tree View

Defining complexTypes That Contain Only Attributes

Diagram View

Tree View

Defining Elements and Attributes in XML Schemas

Defining Elements That Carry Attributes and Contain Data in XML Schemas

Diagram View

Tree View

Defining Elements That Contain Subelements in XML Schemas

Diagram View

Tree View

Adding an Identity Constraint to an Element

Example of an Identity Constraint

Diagram View

Tree View

Defining Groups of Elements and Attributes in XML Schemas

Defining Groups of Elements in XML Schemas - Diagram View

Alternative

Defining Groups of Elements in XML Schemas - Tree View

Defining attributeGroups in XML Schemas - Diagram View

Defining attributeGroups in XML Schemas - Tree View

Adding Comments, Annotation, and Documentation Nodes to XML Schemas

Comments

Annotations

Diagram View

Tree View

Moving a Comment or Annotation

Example

Defining Notations

Diagram View

Tree View

Referencing External XML Schemas

Ways to Reference XML Schemas

Including an XML Schema

Importing an XML Schema

Redefining an XML Schema

Where You Can Reference XML Schemas

What to Do Next

Referencing XML Schemas in the Diagram View

Referencing XML Schemas in the Tree View

Redefining Nodes

Extensions and Restrictions

Specifying Restriction Facets

How to Redefine a Node

Generating Documentation for XML Schemas

Schema Documentation Features

Options for XML Schema Documentation

Viewing Sample XML Schema Documentation

Modifying the Stylesheet That Generates XML Schema Documentation

About XML Schema Properties

About xsd:schema Properties

Element and Element Reference Properties in XML Schemas

Attribute and Attribute Reference Properties in XML Schemas

Group Properties in XML Schemas

Model Group Properties in XML Schemas

Complex and simpleType Properties in XML Schemas

Restriction and Extension Type Properties in XML Schemas

Content Type Properties in XML Schemas

Aggregator Type Properties in XML Schemas

Facet Type Properties in XML Schemas

Notation Type Properties in XML Schemas

Include Type Properties in XML Schemas

Import Type Properties in XML Schemas

Redefine Type Properties in XML Schemas

Identity Constraint Type Properties in XML Schemas

Constraint Element Type Properties in XML Schemas

Documentation Type Properties in XML Schemas

What Is a DTD?

Creating DTDs

About Editing DTDs

Restrictions

About Modifiers in Element Definitions in DTDs

Description of Element Modifiers in DTDs

Simple Example of Aggregating Modifiers in DTDs

More Complex Example of Aggregating Modifiers in DTDs

Aggregating Modifiers to Allow Any Order and Any Number in DTDs

Defining Elements in DTDs

Defining Elements in the DTD Tree Tab

Specifying That an Element Can Have an Attribute in DTDs

Specifying That an Element is Required in DTDs

Specifying That an Element is Optional in DTDs

Specifying That Multiple Instances of An Element Are Allowed in DTDs

Specifying That An Element Can Contain One of a Group of Elements in DTDs

Specifying That an Element Can Contain One or More Elements in DTDs

Specifying That an Element Can Contain Data in DTDs

Moving, Renaming, and Deleting Elements in DTDs

Defining General Entities and Parameter Entities in DTDs

Steps for Defining Entities in DTDs

General Entity Example in a DTD

Parameter Entity Example in a DTD

Inserting White Space in DTDs

Adding Comments to DTDs

About Node Properties in DTDs

Description of Element Properties in DTDs

Description of Attribute Properties in DTDs

Description of Entity and Parameter Entity Properties in DTDs

Associating an XML Document with an External DTD

Moving an Internal DTD to an External File

About the XPath Processor

Where You Can Specify Queries

About XPath

Benefits of XPath

Internationalization

Restrictions on Queries

Sample Data for Examples and Testing

About XML Document Structure

A Sample XML Document

Tree Representation of a Sample XML Document

Steps for Trying the Sample Queries

Getting Started with Queries

Obtaining All Marked-Up Text

Obtaining a Portion of an XML Document

Obtaining All Elements of a Particular Name

Obtaining All Elements of a Particular Name from a Particular Branch

Different Results from Similar Queries

Queries That Return More Than You Want

Specifying Attributes in Queries

Restrictions

Attributes and Wildcards

Filtering Results of Queries

Quotation Marks in Filters

More Filter Examples

How the XPath Processor Evaluates a Filter

Multiple Filters

Filters and Attributes

Wildcards in Queries

Restrictions

Attributes

Calling Functions in Queries

Case Sensitivity and Blank Spaces in Queries

Precedence of Query Operators

Specifying the Nodes to Evaluate

Understanding XPath Processor Terms

Axis

Context Node

Context Node Set

Current Node

Document Element

Filter

Location Path Expression

Location Step

Node Test

Root Node

Starting at the Context Node

About Root Nodes and Document Elements

Starting at the Root Node

Descending Along Branches

Explicitly Specifying the Current Context

Specifying Children or Descendants of Parent Nodes

Examples of XPath Expression Results

Syntax for Specifying an Axis in a Query

Supported Axes

About the child Axis

About the descendant Axis

About the parent Axis

About the ancestor Axis

About the following-sibling Axis

About the preceding-sibling Axis

About the following Axis

About the preceding Axis

About the attribute Axis

About the namespace Axis

About the self Axis

About the descendant-or-self Axis

About the ancestor-or-self Axis

Axes That Represent the Whole XML Document

Handling Strings and Text

Searching for Strings

Finding Identical Strings

Finding Strings That Contain Strings You Specify

Finding Substrings That Appear Before Strings You Specify

Finding Substrings That Appear After Strings You Specify

Finding Substrings by Position

Manipulating Strings

Concatenating Strings

Determining the Number of Characters in a String

Normalizing Strings

Replacing Characters in Strings with Characters You Specify

Converting Objects to Strings

Finding Strings That Start with a Particular String

Obtaining the Text Contained in a Node

Specifying Boolean Expressions and Functions

Using Boolean Expressions

Case Sensitivity

Examples

Calling Boolean Functions

Converting an Object to Boolean

Obtaining Boolean Values

Determining the Context Node Language

Specifying Number Operations and Functions

Performing Arithmetic Operations

Calling Number Functions

Converting an Object to a Number

Obtaining the Sum of the Values in a Node Set

Obtaining the Largest, Smallest, or Closest Number

Comparing Values

About Comparison Operators

How the XPath Processor Evaluates Comparisons

Comparing Node Sets

Two Node Sets

A Node Set and a Number

A Node Set and a String

A Node Set and a Boolean Value

Comparing Single Values With = and !=

Comparing Single Values With <=, <, >, and >=

Priority of Object Types in Comparisons

Examples of Comparisons

Operating on Boolean Values

Finding a Particular Node

About Node Positions

Determining the Position Number of a Node

Positions in Relation to Parent Nodes

Finding Nodes Relative to the Last Node in a Set

Finding Multiple Nodes

Examples of Specifying Positions

Finding the First Node That Meets a Condition

Finding an Element with a Particular ID

The id() Function's Argument

Unique IDs

Obtaining Particular Types of Nodes By Using Node Tests

About the Document Object

Getting Nodes of a Particular Type

Obtaining a Union

Obtaining Information About a Node or a Node Set

Obtaining the Name of a Node

Wildcards

Obtaining Namespace Information

Obtaining the Namespace URI

Obtaining the Local Name

Obtaining the Expanded Name

Specifying Wildcards with Namespaces

Examples of Namespaces in Queries

Obtaining the URI for an Unparsed Entity

Determining the Number of Nodes in a Collection

Determining the Context Size

Using XPath Expressions in Stylesheets

Using Variables

Obtaining System Properties

Determining If Functions Are Available

Obtaining the Current Node for the Current XSLT Template

Finding an Element with a Particular Key

Generating Temporary IDs for Nodes

Format

Accessing Other Documents During Query Execution

Format of the document() Function

When the First Argument is a Node Set

Specification of Second Argument

Example of Calling the document() Function

XPath Quick Reference

XPath Functions Quick Reference

XPath Syntax Quick Reference

Axes

Node Tests

Filters

Location Steps

XPath Expression

XPath Abbreviations Quick Reference

Getting Started with XQuery in Stylus Studio

What is XQuery?

Example

Sources for Additional XQuery Information

What is an XQuery?

The Stylus Studio XQuery Editor

XQuery Source Tab

Mapper Tab

XQuery Source and Mapper Tab Interaction

Building an XQuery Using the Mapper

Process Overview

Working with Existing XQueries

Source Documents

Choosing Source Documents

Source Documents and XML Instances

Source document icons

How to Change a Source Document Association

How to Add a Source Document

How to Remove a Source Document

How Source Documents are Displayed

Document structure symbols

Getting source document details

Specifying a Target Structure

Using an Existing Document

Building a Target Structure

Modifying the Target Structure

Adding a Node

Removing a Node

Setting a Text Value

Mapping Source and Target Document Nodes

Preserving Mapper Layout

Left and Right Mouse Buttons Explained

How to Map Nodes

Link Lines Explained

Removing Source-Target Map

FLWOR Blocks

Parts of a FLWOR Block

Creating a FLWOR Block

Function Blocks

Standard Function Block Types

Creating a Function Block

Parts of a Function Block

User-Defined Functions

concat Function Blocks

IF Blocks

Condition Blocks

Debugging XQuery Documents

Using Breakpoints

Inserting Breakpoints

Removing Breakpoints

Start Debugging

Viewing Processing Information

Watching Particular Variables

Evaluating XPath Expressions in the Current Processor Context

Obtaining Information About Local Variables

Displaying a List of Process Suspension Points

Displaying XQuery Expressions for Particular Output

Using Bookmarks

Inserting

Removing

Moving Focus

Profiling XQuery Documents

About Performance Metrics

Enabling the Profiler

Displaying the XQuery Profiler Report

Creating an XQuery Scenario

Overview of Scenario Features

Specifying XML Source Documents

Selecting an XQuery Processor

Setting Values for External Variables

Performance Metrics Reporting

How to Create a Scenario

How to Run a Scenario

How to Clone a Scenario

Overview

How to Compose a Web Service Call

Obtaining WSDL URLs

Browsing UDDI Registries

How to Browse UDDI Registries

Modifying a SOAP Request

Understanding Parameters

Displaying a WSDL Document

How to Modify a SOAP Request

Testing a Web Service

What Happens When You Test a Web Service

Other Options for Testing a Web Service

How to Test a Web Service

Saving a Web Service Call

Using Web Service Calls as XML

Where Web Service Calls are Saved

How to Save a Web Service Call

Creating a Web Service Call Scenario

Overview of Scenario Features

Scenario Names

Transport Protocol and Client Settings

Other Transport Setttings

How to Create a Scenario

How to Run a Scenario

How to Clone a Scenario

Overview of DB-to-XML Data Sources

Supported Databases

System Requirements

DB-to-XML Data Source Scenarios

The DB-to-XML Data Source Editor

SQL/XML Editor

Database Schema Tree

Working with Relational Data

Creating a DB-to-XML Data Source

Opening a New DB-to-XML Data Source Document

Saving a DB-to-XML Data Source

Opening a DB-to-XML Data Source

Specifying Connection Settings

Connection Settings Vary

Choosing a Database

Using SequeLink

Using the Server URL Field

Username and Password

Working with Scenarios

Opening the Scenario Properties Dialog Box

Creating a Scenario

Naming Scenarios

How to Create a Scenario

Alternative

How to Modify a Scenario

How to Clone a Scenario

How to Rename a Scenario

How to Delete a Scenario

Composing SQL/XML in Stylus Studio

Manually Entering SQL/XML

Using Drag-and-Drop

Example

How Relational Data is Translated to XML

Working with Relational Data as XML

Understanding SELECT and UPDATE

When Statements are Executed

Example

The SELECT Statement

The INSERT Statement

Saving the File

Opening the .rdbxml as XML

Updating the Data in the Database

Using the URL Builder

Compared to DB-to-XML Data Sources

When to Use

Connection Settings

How to Open a Table or View as an XML Document

Custom XML Validation Engines

Registering a Custom Validation Engine

Configuring a Custom Validation Engine

The Custom Validation Engines Page

How to Configure a Custom Validation Engine

Custom Document Wizards

Registering a Custom Document Wizard

Configuring a Custom Document Wizard

The Custom Document Wizards Page

Defining Arguments

How to Configure a Custom Document Wizard

Stylus Studio File System Java API

Overview

Javadoc for the Stylus Studio File System Java API

Custom File Systems

Creating a Custom File System

File System Interfaces

Examples

Registering a Custom File System

The Custom File Systems Page

How to Display

Fields

How to Register a Custom File System

Using Stylus Studio with Berkeley DB XML

Overview

Berkeley DB XML Support

Usage Summary

Prerequisites

Saving Files to Berkeley DB XML

Configuring the BerkeleyDBXML.xml File

The Berkeley Database Environment

The BerkeleyDBXML.xml Configuration File

How to Configure BerkeleyDBXML.xml

Open the Output Window

Naming Files

Example - Berkeley DB XML V 1.2.1

Opening a File Stored on Berkeley DB XML

Saving a File Back to Berkeley DB XML

Saving and Containers

Validating Documents

Creating Containers with Stylus Studio

Node and Wholedoc Containers

Usage Tips

Before Starting Stylus Studio

Database Environment Recovery

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

A

B

C

D

F

G

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

About Stylus Studio

Fields

Add Column

Fields

For More Information

Add References to Schema

Fields

For More Information

Add Table

Fields

For More Information

Assign Shortcut

Fields

For More Information

Attach to JVM

Fields

For More Information

Backmap Stack

For More Information

Breakpoints

Fields

Buttons

For More Information

Build Project From SCC

Fields

Buttons

For More Information

Call Stack

For More Information

Choose Manager

For More Information

Choose Module

Fields

For More Information

Choose Provider

Fields

For More Information

Choose Root Element (DTD)

Fields

For More Information

Choose Root Element (XQuery Mapper)

Fields

For More Information

Choose Schema

Fields

For More Information

Choose Server

Fields

For More Information

Choose Source and Destination Schema

Fields

For More Information

Class Properties

Fields

For More Information

Convert Fixed Width to XML

Fields

Buttons

For More Information

Convert to XML Editor

Buttons

For More Information

Create Schema or DTD

Fields

For More Information

CSV to XML

Fields

Buttons

For More Information

Customize Command (Buttons)

For More Information

Custom Document Wizard Arguments

Fields

Buttons

For More Information

Customize Toolbars

Fields

For More Information

DB-to XML-Data Source Editor

Connection Settings

SELECT Tab

UPDATE Tab

Database Schema Tree

For More Information

Diff Folders

Fields

For More Information

Document Wizards

XML Editor Document Wizards

For More Information

XSLT Editor Document Wizards

Java Document Wizards

For More Information

DTD Schema Editor Text Tab

Buttons

For More Information

DTD Schema Editor Tree Tab

Buttons

Left Tool Bar Buttons

For More Information

DTD to XML Schema

Fields

Find

Fields

For More Information

Go To (Convert to XML)

Fields

For More Information

Go To

Fields

For More Information

Input

Fields

For More Information

Insert Table

Fields

For More Information

Java Class Browser

Fields

For More Information

Java Editor

Fields

For More Information

Keyboard Accelerators

File Commands

General Commands

Editing Commands

Debugging Commands

Lookup List

Fields

Buttons

For More Information

Mark Logic Server Settings

Fields

For More Information

Name

Fields

For More Information

Named Template

Fields

For More Information

Named/Matched Template

Fields

How to Create a Parameter

For More Information

New Converter

Fields

For More Information

Notes

For More Information

Open and Save As

Fields

Buttons

For More Information

Options

Fields

Options - Application Settings

Fields

For More Information

Options - Application Settings - Backmapping

Fields

Options - Application Settings - Custom Document Wizards

Fields

Buttons

For More Information

Options - Application Settings - Custom File Systems

Fields

For More Information

Options - Application Settings - Custom Tools

Fields

Buttons

For More Information

Options - Application Settings - Default Extensions

For More Information

Options - Applications Settings - Editor Format

Fields

Buttons

For More Information

Options - Application Settings - Editor General

Fields

For More Information

Options - Application Settings - File Types

Buttons

Fields

For More Information

Options - Application Settings - Java Virtual Machine

Fields

For More Information

Options - Module Settings - DBtoXML - Default Connection

Fields

Buttons

For More Information

Options - Module Settings - Java - Debugger

Fields

Options - Module Settings - Java - External JVM

Fields

For More Information

Options - Module Settings - Java - Java Compiler

Fields

For More Information

Options - Module Settings - XML Diff - Engine

Fields

How Options are Related to the Menu and the Tool Bar

For More Information

Options - Module - Settings - XML Diff - Presentation

Fields

Default Colors

Changing Colors

For More Information

Options - Module Settings - XML Editor - Custom Validation Engines

Fields

Buttons

For More Information

Options - Module Settings - XML Editor - XML Settings

Fields

For More Information

Options - Module Settings - XML Schema Editor - Diagram

For More Information

Options - Module Settings - XSLT Editor - External XSLT

Fields

For More Information

Options - Module Settings - XSLT Editor - Mapper

Fields

For More Information

Options - Module Settings - XSLT Editor - WYSIWYG

Fields

For More Information

Options - Module Settings - XSLT Editor - XSLT Settings

Fields

For More Information

Output Window

For More Information

Project Window

For More Information

Project Wizards

For More Information

Properties for XML Converters

Fields

For More Information

Properties for DTD Nodes

For More Information

Properties for XML Schema Nodes

For More Information

Query Output

Fields

For More Information

Redefine Schema Symbols

For More Information

Referenced Schemas

Fields

Buttons

For More Information

Register and Activate Stylus Studio

Rename Column

Fields

For More Information

Scenario Properties Bindings Tab (Web Services)

Fields

For More Information

Scenario Properties Connection Settings Tab

Fields

For More Information

Scenario Properties General Tab (Web Services)

For More Information

Scenario Properties General Tab (XSLT)

Fields

Buttons

For More Information

Scenario Properties Parameter Values Tab (XSLT)

Fields

For More Information

Scenario Properties Postprocess Tab (XSLT)

Fields

For More Information

Scenario Properties Profiling Options Tab (XSLT)

Fields

Scenario Properties Processor Tab (XQuery)

Fields

For More Information

Scenario Properties Processor Tab (XSLT)

Fields

For More Information

Scenario Properties General Tab (XQuery)

Fields

Buttons

For More Information

Scenario Properties Parameter Values Tab (XQuery)

Fields

For More Information

Scenario Properties Profiling Options Tab (XQuery)

Fields

For More Information

Select Source/Target Folder

For More Information

Select XML Converter

Fields

For More Information

Set Node and Pattern

Fields

For More Information

Servlet Properties

Fields

Shortcut Keys

Fields

Buttons

Source Code Control Properties

Fields

For More Information

Stylus Studio

Buttons

For More Information

Text Catalog to XML Catalog

Fields

Type Derivation

For More Information

UDDI Registry Browser

Fields

For More Information

User-Defined Catalog Wizard

Fields

Buttons

Value

For More Information

Variables

For More Information

Watch

For More Information

Web Service Call Composer

Fields

For More Information

XML Diff Editor - Merged View

For More Information

XML Diff Editor - Split View

For More Information

XML Editor Grid Tab

Fields

Buttons

For More Information

XML Editor Schema Tab

Fields

Buttons for Editing

Buttons for Adding Nodes

For More Information

XML Editor Text Tab

Fields

Buttons

For More Information

XML Editor Tree Tab

Fields

Buttons for Editing

Buttons for Adding Nodes

For More Information

XML Schema Editor Diagram Tab

Fields

Buttons

For More Information

XML Schema Editor Documentation Tab

Buttons

Report Contents

For More Information

XML Schema Editor Tree Tab

Fields

Buttons for Editing

Buttons for Adding Nodes

For More Information

XPath for xsl: Elements

For More Information

XQuery Editor

For More Information

XQuery Editor - XQuery Source Tab

Fields

Buttons

For More Information

XQuery Editor - Mapper Tab

How to Map

Fields

Buttons

For More Information

XSD from DTD (Trang)

Fields

xsl:choose

Fields

For More Information

XSLT Editor - Mapper Tab

Fields

Buttons

For More Information

XSLT Editor - Params/Other Tab

Fields

For More Information

XSLT Editor - WYSIWYG Tab

Fields

Buttons

For More Information

XSLT Editor - XSLT Source Tab

Fields

Buttons

For More Information

XSLT and XQuery Preview Window

Buttons

For More Information

 
Free Stylus Studio XML Training: