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
chris dSubject: creating macros / automating processeswith stylus
Author: chris d
Date: 17 Aug 2005 12:39 PM
hi

I'm looking at using stylus to convert csv files to xml. when i convert the file each file will need to undergo the same changes to enable it to validate against my dtd - I also need to creat a program tomerge 2 seperate xmlfiles into one (again to enable it validate against a dtd). Is it possible to use macros to automate the xml changes using stylus ?

How would I automate a process of merging two xml files ?

I've downloaded the home edition as a trial.

cheers

chris

Postnext
Tony LavinioSubject: creating macros / automating processeswith stylus
Author: Tony Lavinio
Date: 22 Aug 2005 02:51 PM
1. You can save the Convert-to-XML map as a .conv file, and use it
as part of a URL like this: adapter:xyz.conv?file:... where the part
after the ? is a fully-qualified URL, so that you can use the same
.conv file for multiple input files.

2. As far as merging, your best bet would be to create a piece of XSLT
or XQuery that does it; there is no generic "merge" program since there
are so many ways two XML files could be merged. But as input, you
could use the above adapter URLs, so that the XSLT or XQuery could
operate on your input files just as if they were XML.

3. You can call a command-line version of XSLT or XQuery. Use the
StylusXSLT.exe or StylusXql.exe programs that are in the Stylus Studio
bin directory.

4. If you build your XSLT or XQuery properly, the output can be made to
conform to a DTD. But you can always call a command-line validator to
do so. We include several, including XSV and Xerces-J, with Stylus
Studio that are packaged as custom validation engines.

Hope this helps.

Posttop
chris dSubject: creating macros / automating processeswith stylus
Author: chris d
Date: 23 Aug 2005 08:56 AM
thanks i'll look into that

 
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.