|
Home > Online Product Documentation > Table of Contents > Constructing Your Own Adapter URL Constructing Your Own Adapter URLGenerally speaking, you should use Stylus Studio to construct adapter URLs, which you can then copy, as strings, into a Java application. Adapter URLs can be complex - properties and their values vary from one adapter to another, for example - so using Stylus Studio to construct them helps reduce errors in your applications.
Using the URL in the Select XML Converter Dialog BoxTo construct an adapter URL using the URL in the Select XML Converter dialog box:
1. Use the adapter to open a file as an XML document in Stylus Studio. This can be a user-defined or built-in adapter, as appropriate. See
How to Open a File Using an Adapter if you need help with this step.
2. Before clicking
OK to complete the conversion, copy the adapter URL in the
URL field of the
Select XML Converter dialog box (see
Figure 202).
3. Click
OK to complete the conversion.
4. Paste the adapter URL into your Java program.
Using the URL in the Properties WindowTo construct an adapter URL using the URL in the Properties window:
1. Use the adapter to open a file as an XML document in Stylus Studio. This can be a user-defined or built-in adapter, as appropriate. See
How to Open a File Using an Adapter if you need help with this step.
2. Open a new document in any Stylus Studio text editor (for example,
File > New > Java: Text Editor).
The purpose of this step is to provide an editor into which you can drag-and-drop the adapter URL for the document you created in step 1.
3. Drag the document you created in
step 1from the
Project window and drop it into the text editor associated with the document you created in
step 2.
The complete URL appears in the text editor.
4. Copy the complete adapter URL.
5. Paste the adapter URL into your Java program.
6. 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).
|
XSD Mapping
Stylus Studio® includes a visual XSD-to-XSD mapping tool that allows you to easily implement sophisticated XML data mappings involving multiple data sources and customized data processing using either XSLT or XQuery code.
Validating X12 Documents with XML Schemas
Either before or after transforming X12 EDI content, generated XML Schemas will make sure that we have all of the necessary components, our codes are all according to the standard codelists, and every little delimiter is in the right place.
Stylus Studio is a Real Cost-Saver in Novell Implementations
Learn how TriVir, a leading consulting group used Stylus Studio to implement a Novell based solutions using DirXML, eDirectory, and the exteNd suite for their government customers.
EAI - Enterprise Application Integration
Using EAI tools included with Stylus Studio it's easy to unlock silos of enterprise data and seamlessly integrate it into your IT applications.