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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1168)
+ Stylus Studio Technical Forum (14390)
+ Website Feedback (244)
+ XSLT Help and Discussion (7583)
+ XQuery Help and Discussion (1941)
+ Stylus Studio FAQs (159)
- Stylus Studio Code Samples & Utilities (363)
-> + XSL in HTML? (9)
-> + Help Creating a new wsdl (2)
-> + Extracting XML from a database... (6)
-> - Stylus Studio Converters comma... (18)
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> ->Stylus Studio Converters ...
-> - Schema for RDF section within ... (1)
-> + Text to XML converter not in t... (4)
-> + Filtering data with a combo bo... (2)
-> + Loading data in XML file/docum... (2)
-> + Stylus StudioŽ's Web Service C... (2)
-> - How to replace a specific node... (1)
-> + xsl:result-document and multip... (2)
-> - Russian Doll Schema (1)
-> + Populating MS access from XML ... (9)
-> + xsd to xml (5)
-> + populating treeview control wi... (6)
-> + Problem generating a simple DT... (4)
-> + XML Newbie Basics (4)
-> + How do I ... Build an HTML Pag... (2)
-> + .NET API (6)
-> - Building Your Own Search Engin... (1)
-- Previous [61-80] [81-100] [101-120] Next
+ Stylus Studio Announcements (113)
Topic  
Postnext
Ivan PedruzziSubject: Stylus Studio Converters command-line utility
Author: Ivan Pedruzzi
Date: 22 Nov 2006 12:58 PM
Originally Posted: 19 Oct 2006 07:25 PM
This is a simple utility to invoke the Stylus Studio Converters through a command line interface to process a set of documents.

The command line takes four parameters:

1) The Stylus Studio Installation ID, see Help -> About in the Stylus Studio IDE
2) The conversion direction: toxml or fromxml
3) The Converter URL
4) A file mask like *.csv

Instructions:
- Copy the attached convert.jar into <Stylus Studio folder>\bin
- Set environment variable CONVERTERJAR to the jar location for instance
SET CONVERTERJAR= "c:\Program Files\Stylus Studio 2007 XML Enterprise Suite\bin\convert.jar"

To execute a conversion type the following
java -jar %CONVERTERJAR% 12345-6789012345 fromxml adapter:CSV:sep=,:first=yes *.xml


Happy conversions
Ivan Pedruzzi
Stylus Studio Team


Documentconvert(2).jar

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 18 Jul 2007 12:56 PM
Please clarify use of the following command:

java -jar %CONVERTERJAR% 12345-6789012345 fromxml adapter:CSV:sep=,:first=yes *.xml

Using this command, how would I take doc.csv, run it through docconvert.conv, and output doc.xml?

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 18 Jul 2007 01:36 PM
Okay, I figured out the syntax, but I still encounter problems. I get the following message:

Exception in thread "main" java.lang.NoClassDefFoundError: com/exln/stylus/io/StylusFileFactory
at Convert.main(Convert.java:26)

Please advise

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 18 Jul 2007 02:13 PM
Here is the current problem i now face with v2007 release 2


C:\Program Files\Stylus Studio 2007 XML Enterprise Suite Release 2\bin>Convert.j
ar;XMLConverters.jar Convert 12345-6789012345 toxml adapter:CSV:sep;,:first=ye
s "D:\data\KB\Kanisa\KMap\stylesheets\Evidences\convertevidence.conv" *.csv

C:\Program Files\Stylus Studio 2007 XML Enterprise Suite Release 2\bin>java -cp
Convert.jar;XMLConverters.jar Convert 12345-6789012345 toxml adapter:CSV:sep;,
:first=yes "D:\data\KB\Kanisa\KMap\stylesheets\Evidences\convertevidence.conv"
*.csv
Exception in thread "main" com.stylusstudio.converter.ConverterException: The ev
aluation period for the Built-in or Custom XML Converter product has expired.
at com.stylusstudio.converter.ConverterFactory.newConvertToXML(Converter
Factory.java:46)
at Convert.main(Convert.java:32)
Caused by: com.ddtek.xmlconverter.exception.ConverterException: The evaluation p
eriod for the Built-in or Custom XML Converter product has expired.
at com.ddtek.xmlconverter.exception.ConverterException.WrapAsConverterEx
ception(ConverterException.java:43)
at com.ddtek.xmlconverter.ConverterFactory.newConvertToXML(ConverterFact
ory.java:83)
at com.stylusstudio.converter.ConverterFactory.newConvertToXML(Converter
Factory.java:44)
... 1 more

Postnext
Tony LavinioSubject: Stylus Studio Converters command-line utility
Author: Tony Lavinio
Date: 18 Jul 2007 11:42 PM
There are several problems here with your syntax.

1. Please don't include your real activation codes in public posts.
We adjusted your message to remove them.

2. You either use the CSV converter or the .conv file for the Custom XML
Converter, not both at once. So the syntax would be either
java -cp Convert.jar;XMLConverters.jar Convert 12345-6789012345 toxml converter:CSV:sep=,:first=yes xyz.csv
or
java -cp Convert.jar;XMLConverters.jar Convert 12345-6789012345 toxml converter:file:///D:/data/KB/Kanisa/KMap/stylesheets/Evidences/convertevidence.conv xyz.csv

2a. Starting in 2007 Release 2, the adapter: scheme has been renamed to
converter:, although adapter: still works for the moment.

2b. It's safer to use URI syntax than filename syntax when dealing with web
technologies. So for filenames, use file:/// and forward slashes.

2c. You had "sep;," instead of "sep=,"

3. Wildcards aren't supported. Instead, use the CMD 'for' syntax, like this:
for %i in (*.csv) do java -cp .....

4. In order to run the converters from outside of Stylus Studio, you need a
valid converter license. You may be granted an evaluation of them, but they
are different product from Stylus Studio when used externally, and are
separately licensed. Contact stylusstudio@stylusstudio.com for details.

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 18 Jul 2007 11:47 PM
Thanks for the details, and I feel really stupid for not editing my installation code. Thanks for catching that. My apologies.

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 19 Jul 2007 11:19 AM
For the record, I tried it, and it worked beautifully. Thanks for the help.

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 21 Mar 2008 02:49 PM
Originally Posted: 21 Mar 2008 02:44 PM
I have run into a propblem since rebuilding my computer. I get this messagef or each .conv attempt:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/transform/Source

ideas?

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 21 Mar 2008 04:29 PM
Okay, I admit my stupidity... I forgot to install Java when I rebuilt. Sorry for the bother.

Postnext
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 25 Feb 2009 10:44 PM
This could be a life saver for me so first I thank you for opening this up. I do have a few questions. The following step:

- Set environment variable CONVERTERJAR to the jar location for instance
SET CONVERTERJAR= "c:\Program Files\Stylus Studio 2007 XML Enterprise Suite\bin\convert.jar"

Where do I find this environment variable?

Also, is it true that this will not work with a trial key?

Thanks
-Ryan Goodman

Postnext
Marc FeickertSubject: Stylus Studio Converters command-line utility
Author: Marc Feickert
Date: 25 Feb 2009 10:47 PM
Just type that command into the command line. Should wortk on the trial license... did for me!

Postnext
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 26 Feb 2009 03:32 PM
Sorry for my ignorance... I just want to make sure I get this right as I have not gotten it to work quite yet. After I place the jar file into the directory, I need to enter this into the command line?

SET CONVERTERJAR= "c:\Program Files\Stylus Studio 2009 XML Enterprise Suite\bin\convert.jar"

When I did this, I get no response while in the command window.

I understand that once everything is setup, I would enter the following into the command line. 12345-6789012345 is replaced with my tial key which looks something like this XXXXX-XXXXX-XXXXX-XXXXX.

java -cp Convert.jar;XMLConverters.jar Convert 12345-6789012345 toxml converter:file:///D:/Users/Ryan Goodman/Desktop/xml/delinquency.conv Delinquency.csv

When I entered this, I get an error:

Exception in thread "main" java.lang.NoClassDefFoundError: Convert Caused by: java.lang.ClassNotFoundException: Convert
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
.... let me know if you need the rest transcribed into this email. I am hoping there is something trivial that I missed from above.


So you know what I am trying to accomplish... I am just trying to automate converting a CSV to XML without having to open the stylus studio application.

I assume that if this works, I will see my XML file in the same directory as the CSV?

Thank you for your help.

Postnext
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 26 Feb 2009 03:51 PM
Sorry for my ignorance... I just want to make sure I get this right as I have not gotten it to work quite yet. After I place the jar file into the directory, I need to enter this into the command line?

SET CONVERTERJAR= "c:\Program Files\Stylus Studio 2009 XML Enterprise Suite\bin\convert.jar"

When I did this, I get no response while in the command window.

I understand that once everything is setup, I would enter the following into the command line. 12345-6789012345 is replaced with my tial key which looks something like this XXXXX-XXXXX-XXXXX-XXXXX.

java -cp Convert.jar;XMLConverters.jar Convert 12345-6789012345 toxml converter:file:///D:/Users/Ryan Goodman/Desktop/xml/delinquency.conv Delinquency.csv

When I entered this, I get an error:

Exception in thread "main" java.lang.NoClassDefFoundError: Convert Caused by: java.lang.ClassNotFoundException: Convert
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
.... let me know if you need the rest transcribed into this email. I am hoping there is something trivial that I missed from above.


So you know what I am trying to accomplish... I am just trying to automate converting a CSV to XML without having to open the stylus studio application.

I assume that if this works, I will see my XML file in the same directory as the CSV?

Thank you for your help.

Postnext
Ivan PedruzziSubject: Stylus Studio Converters command-line utility
Author: Ivan Pedruzzi
Date: 27 Feb 2009 12:03 AM

Ryan,

You are trying to use the old command line syntax with the latest product.

Please read the XML Converters user guide also available online at
http://www.xmlconverters.com/doc/40/java/xmlconverters_ug/overview5.html

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 27 Feb 2009 12:30 AM
Unfortunately, I am in a tight deadline but I absolutely want to use this tool. Is there a paid resource out there that could help us get this up and running remotely?

thanks,

Ryan Goodman
ryan@ryangoodman.net

Postnext
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 27 Feb 2009 12:38 AM
Unfortunately, I am in a tight deadline but I absolutely want to use this tool. Is there a paid resource out there that could help us get this up and running remotely?

thanks,

Ryan Goodman
ryan@ryangoodman.net

Postnext
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 01 Mar 2009 07:35 PM
Anyone out there whom we can procure some hours to help us out? Is what we are trying to do viable with this application? Automate converting a CSV to XML.

I have a .conv file that I have setup and all I want to do is automate the conversion using the command line. I have to have an answer for monday, or we have to keep searching.

thanks
Ryan Goodman
ryan@ryangoodman.net

Posttop
Ryan GoodmanSubject: Stylus Studio Converters command-line utility
Author: Ryan Goodman
Date: 01 Mar 2009 09:10 PM
Anyone out there whom we can procure some hours to help us out? Is what we are trying to do viable with this application? Automate converting a CSV to XML.

I have a .conv file that I have setup and all I want to do is automate the conversion using the command line. I have to have an answer for monday, or we have to keep searching.

thanks
Ryan Goodman
ryan@ryangoodman.net

   
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.