|
Home >Online Product Documentation >Table of Contents >Specifying a Converter URI Specifying a Converter URITo specify a converter: URI, you need to specify
l The XML Converter you want to use - EDI, CSV, dBase, custom XML conversion definition (.conv file), and so on.
l Values for any XML Converters properties (separator or escape characters, for example) for which you do not want to use the default values. Options for custom XML conversions are part of the custom XML conversion definition and are not specified.
l The file to be converted.
Example - Converter URI with a DataDirect XML ConvertersA converter: URI that invokes the DataDirect XML Converter for comma-separated values (CSV) to convert the three.txt file in the Stylus Studio\examples directory to XML might look like this:
converter:CSV:newline=lf:first=yes:?file:///c:/StylusStudio/examples/ three.txt The instructions to the XML Converters engine from this instance of the converter:URI are described the following table. Properties that use default values (a comma is the default separator character for the CSV XML Converter, for example) do not have to be specified in a converter:URI. Example - Converter URI with a Custom XML Conversion DefinitionA converter URI that references a custom XML conversion definition might look like this:
converter:///myConverter.conv?file:inventory.txt
This converter uses myConverter.conv to convert the file inventory.txt to some format (specified in the custom XML conversion definition when it was built using the Custom XML Conversion Definition Editor in Stylus Studio). Note that individual configuration properties are not specified - they are part of the definition described in the .conv file. |