Using Stylus Studio to Build a Converter URL

If you have Stylus Studio 2008 XML Enterprise Suite, you can use Stylus Studio to construct converter URLs. Converter URLs can be complex - property names and their values vary from one XML Converters to another, for example - so using Stylus Studio to construct them can reduce errors in your applications.

Using the URL in the Select XML Converter Dialog Box

To construct a converter URL using the URL in the Select XML Converter dialog box:
1. Use the XML Converters or custom XML conversion definition to open a file as an XML document in Stylus Studio. See Using XML Converters to Open a Non-XML File as XMLor How to Open a File Using a Custom XML Conversion Definition if you need help with this step.
2. Before clicking OK to complete the conversion, copy the converter URL in the URL field of the Select XML Converter dialog box (see Figure 188).
3. Click OK to complete the conversion. (You can click Cancel if you are peforming this procedure just to obtain the converter URL.)
4. Paste the converter URL in your XSLT or XQuery code as needed.

Using the URL in the Properties Window

To construct converter URL using the URL in the Properties window:
1. Use the XML Converters or custom XML conversion definition to open a file as an XML document in Stylus Studio. See Using XML Converters to Open a Non-XML File as XMLor How to Open a File Using a Custom XML Conversion Definition if you need help with this step.

Tip

 

New documents are placed in the Other Documents folder in the Project window by default.

2. Open a new document in any Stylus Studio text editor (for example, File > New > XML Document).

The purpose of this step is to provide an editor into which you can drag-and-drop the the document you created in step 1 in order to display the associated converter URL.

3. Drag the document you created in step 1from the Project window and drop it into the text editor you opened in step 2.

The complete URL appears in the text editor.

Figure 190. Copying a URL to a Text Editor

4. Copy the complete converter URL.
5. Paste the converter URL in your XSLT or XQuery code as needed.

Note: Escape characters as required for strings in Java programs. For example, escape=\:quotes='" becomes escape=\\:quotes='\" (the single quote does not need to be escaped).

Converting Custom EDI Message Types to XML

Vital and valuable legacy data locked in proprietary EDI files? See how to use DataDirect XML Converters™ custom EDI message type tools to convert nonconformant EDI to XML.

XML Notepad

XML Notepad simplifies building of XML applications, allowing authors to rapidly build and edit their XML files. With XML Notepad, you can create XML document prototypes quickly, easily, using an intuitive graphical interface.

Translating XML documents to X12

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

Consumer Food Products

Want to know what special ingredient is in these consumer food product companies work enviornment? Well it's a touch Stylus Studio that give these consumer food product companies the extra edge they need for producing such high quality food products!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member