Instantiating Templates in the HTML Editor

To define a template in the WYSIWYG tab:
1. Drag an element or attribute from the source tree and drop it on the HTML canvas.
2. In the pop-up menu that appears, click xsl:apply-templates.

Stylus Studio creates a template that matches the node you dragged in. You can select the placeholder, and apply formatting. Stylus Studio adds this information to the template.

Calling a Named Template

If you have one or more named templates in your stylesheet, or if you want to define a named template, you can add an xsl:call-template instruction.

To call or create a named template in the WYSIWYG tab:
1. Do one of the following:
    • Right-click in the HTML canvas and select Add call-template from the pop-up menu. You can then drag contents to between the xsl:call-template glyphs.
    • Select a placeholder or element in the HTML canvas. Right-click to display the pop-up menu, and select Add call-template.
2. Click the name of the template you want to instantiate, or click Create new template to create a new named template.

Note

 

If you delete xsl:apply-templates glyphs, the corresponding template is still defined in the XSLT source. You must delete this definition in the source when you want to define new contents for the corresponding template in the HTML editor.

Translating XML documents to EDIFACT

In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to EDIFACT

DTD Parser

Learn about the powerful DTD parser technologies that are supported in Stylus Studio's DTD tools, including DOM and SAX based DTD parsing components.

XSV - The XML Schema Validator

XSV is the official reference implementation for the XML Schema language and Stylus Studio is the only XML IDE to provide seamless integration with XSV - the W3C XML Schema Validator. Download Stylus Studio and XSV today.

JSP Editor

Edit and Validate JSP 1.2 and JSP 2.0 documents. Includes JSP syntax coloring, JSP code completion and more.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member