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
Jon GallegosSubject: Dynamic input and output names
Author: Jon Gallegos
Date: 22 May 2008 12:05 PM
I have created an XSLT and have completed the unit testing and all is well. I am now ready for some system testing on an AIX server. I have a question before i get started.

The input files that i will be translating are dynamic. They all start with the same four letters, ecrf, but the rest of the file name is dynamic. (i.e. ecrf00145.xml, ecrf00146.xml, ecrf00147.xml, etc...). The output files also need to be dynamic (i.e. PLM001.xml, PLM002.xml, etc...).

Postnext
Minollo I.Subject: Dynamic input and output names
Author: Minollo I.
Date: 22 May 2008 08:31 PM
This doesn't seem related to Stylus Studio, and this is a discussion forum in support to the Stylus Studio product.

Postnext
Jon GallegosSubject: Dynamic input and output names
Author: Jon Gallegos
Date: 27 May 2008 11:51 AM
This does pertain to stylus studio. What is the name of the file that Stylus Studio produces?

Select the scenario properties and create the output URL.

OK how do i make that name dynamic?

Postnext
Minollo I.Subject: Dynamic input and output names
Author: Minollo I.
Date: 27 May 2008 12:05 PM
Stylus Studio is a development tool; if you want to control thing dynamically, you are talking about embedding and XSLT engine in your application. So, you either use your preferred XSLT engine and bundle it in your Java or .NET or C++ application; or if you are using the Stylus Studio built-in processor you can also use the command line version of such processor which is available in the <stylus>\bin folder (StylusXSLT.exe).

Postnext
Jon GallegosSubject: Dynamic input and output names
Author: Jon Gallegos
Date: 27 May 2008 12:12 PM
I will be runing this on sn AIX machine and do not plan on running it using a Java, .net or C++ application. I plan on using a shell script. Is that not possible?

Postnext
Minollo I.Subject: Dynamic input and output names
Author: Minollo I.
Date: 27 May 2008 12:50 PM
It's software, anything is possible. The easiest way to do that is probably to rely on the Saxon XSLT processor and to use it's command line interface that you can find documented on the saxonica.com website.

Postnext
Jon GallegosSubject: Dynamic input and output names
Author: Jon Gallegos
Date: 27 May 2008 01:07 PM
Purchasing more software is not an option

ok

HEre is the scenario

I will translating XML to XML. I have created the a stylesheet and all works fine.

However, the application (which can not be changed) that is sending my XSL data sends multiple files and for archival and tracking purposes, these files all have different names.

Is there a way to read multiple files in Stylus Studio as I described it above?

Posttop
Minollo I.Subject: Dynamic input and output names
Author: Minollo I.
Date: 27 May 2008 01:19 PM
>Purchasing more software is not an option

The basic version of Saxon (which is what most people use, I suspect) is available as an open source free version.

>HEre is the scenario
>
>I will translating XML to XML. I have created the a stylesheet and
>all works fine.
>
>However, the application (which can not be changed) that is sending
>my XSL data sends multiple files and for archival and tracking
>purposes, these files all have different names.
>
>Is there a way to read multiple files in Stylus Studio as I described
>it above?

Not through the Stylus Studio UI (that in any case would not work on AIX). It's possible through the command line utility (which will not work on AIX), or through the command line of other Java-based processors, like Saxon or the Java built-in (XercesJ usually) one; I'm not positive the Java built-in processor is accessible through a command line out of the box, but you can surely investigate 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.