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 (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Beth AndersonSubject: Creating Final XML upload through XSLT
Author: Beth Anderson
Date: 27 Jun 2005 04:18 PM
I have been assigned a task at which I am the newest of the new -- to create an XML document for upload from our data using only certain fields from a schema. I have created the stylesheet using sample data and the original schema transmitted to us. What is the final process of applying a stylesheet to the data? Although I have read the documentation, it eludes me. Thanks for any help.

Postnext
Ivan PedruzziSubject: Creating Final XML upload through XSLT
Author: Ivan Pedruzzi
Date: 27 Jun 2005 05:51 PM
Beth,

In which format your data is?

Do you need to execute the transformation as batch or just from inside Stylus Studio?

Take a look to the online help you may find what you are looking for:

- Chapter 1 "Using Stylus Studio from the Command Line"
- Chapter 4 "Working with XSLT"

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Beth AndersonSubject: Creating Final XML upload through XSLT
Author: Beth Anderson
Date: 28 Jun 2005 08:19 AM
My data is from a .csv for which I used the tool to create an .xml. I then used the .xml as a source document and the schema (.xsd) that was sent to us to create the stylesheet. Now I need to take the final step and create the .xml from our data and the stylesheet's structure to be uploaded over the web.

What I am looking for is a step-by-step to accomplish that.

Thanks.

Postnext
Ivan PedruzziSubject: Creating Final XML upload through XSLT
Author: Ivan Pedruzzi
Date: 28 Jun 2005 02:37 PM
Beth,

Assuming you have your CSV data as c:\mydata.csv and your XSLT as c:\myxslt.xsl

You can transform your data using the XSLT command-line processor with the following syntax:

StylusXslt -in adapter:CSV:newline=crlf:sep=%2c:first=yes:escape=%5c:quotes=%27%22?file:///c:/mydata.csv -out file:///c:/result.xml file:///c:/myxslt.xsl

The result will be saved as c:\result.xml

you can find StylusXslt under
c:\Program Files\Stylus Studio 6 XML Enterprise Edition\bin

If you need to execute the tranformation programmatically for instance as part of yuor web server you will need to write a Java program using the Stylus Studio API and a JAXP conformant XSLT processor.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team









Posttop
Beth AndersonSubject: Creating Final XML upload through XSLT
Author: Beth Anderson
Date: 30 Jun 2005 09:43 AM
Thank you for your help. I will work on it.

   
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.