XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Gnanaprakash Valacha RamswamiSubject: API to retrieve 'Adapter URL' from Pipeline
Author: Gnanaprakash Valacha Ramswami
Date: 29 Dec 2008 02:39 PM
I am trying to use the code the generated by Stylus for a CSV file conversion process.

I have modified the code to take the input/output as streams instead of passing URIs.

I also need to pass the converter configuration dynamically. I see the converter adapter is set in the pipeline XML.

How do I retrive it at runtime? Is there a API call for that.

Pls clarify.

Thanks
Prakash

Posttop
Ivan PedruzziSubject: API to retrieve 'Adapter URL' from Pipeline
Author: Ivan Pedruzzi
Date: 29 Dec 2008 04:25 PM

If you make use of "Pipeline Input" and "Pipeline Output" blocks, the code generator will expose the following methods

void bindInputObject(String portName, Object obj, Object ignored)
void bindOutputObject(String portName, Object obj)

A Custom Converter can be created passing the .conv file as stream, have a look at
http://media.datadirect.com/download/docs/xmlconverters/java/javadoc/com/ddtek/xmlconverter/ConverterFactory.html#newConvertToXML(javax.xml.transform.Source)

In order to use this feature you will need to change the code manually.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.