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
(Deleted User) Subject: Post process for SVG
Author: (Deleted User)
Date: 05 Apr 2002 08:00 AM
(using 3.1 Build 069s)

I am post-processing to access SVG produced by my xslt.

I add this command in the post-process dialogue:

copy %1 %2

But, I get this error:

Post processing starting...
Command line failed (error 2):
copy "C:\WINNT\Profiles\LWALST~1.LWA\LOCALS~1\Temp\pro5F.xml" "C:\WINNT\Profiles\LWALST~1.LWA\LOCALS~1\Temp\pos60.svg"

So, I issued the command manually in a cmd window. Then, I refreshed the stylus preview window and my SVG is imaged!

What is wrong with my post-processing command?

Thanks,

Leonard

Postnext
Alberto MassariSubject: Re: Post process for SVG
Author: Alberto Massari
Date: 05 Apr 2002 08:11 AM
At 08.11 05/04/2002 -0500, you wrote:
>From: "Leonard Walstad"
>
>(using 3.1 Build 069s)
>
>I am post-processing to access SVG produced by my xslt.
>
>I add this command in the post-process dialogue:
>
>copy %1 %2
>
>But, I get this error:
>
>Post processing starting...
>Command line failed (error 2):
>copy "C:\WINNT\Profiles\LWALST~1.LWA\LOCALS~1\Temp\pro5F.xml"
>"C:\WINNT\Profiles\LWALST~1.LWA\LOCALS~1\Temp\pos60.svg"
>
>So, I issued the command manually in a cmd window. Then, I refreshed the
>stylus preview window and my SVG is imaged!
>
>What is wrong with my post-processing command?

Hi Leonard,
"copy" is an internal command, that is, is available only inside the
"cmd.exe" shell window. So you should either use an external command (such
as "xcopy") or specify "cmd /C copy %1 %2"

Hope this helps,

Alberto

Postnext
(Deleted User) Subject: Post process for SVG
Author: (Deleted User)
Date: 05 Apr 2002 09:17 AM
xcopy %1 %2 produces no error, but it appears that the output file is empty. (nothing in browser and I found an empty .svg appears each time I run the transformation)

Ideas?

Thanks,

Leonard

Posttop
Minollo I.Subject: Re: Post process for SVG
Author: Minollo I.
Date: 05 Apr 2002 09:46 AM
br> >xcopy %1 %2 produces no error, but it appears that the output file is
>empty. (nothing in browser and I found an empty .svg appears each time I
>run the transformation)

If you try running "xcopy %1 %2" manually, where %1 is a file and %2 is a
non-existing file, you will notice that xcopy prompts you to know if you
want to create a directory named %2 or a file named %2... I know there is
an option to force xcopy to consider %2 a directory and not a file; but you
want the vice-versa, so I'm not sure if you can forse that.

I've tested Alberto's suggestion: "cmd /C copy %1 %2" and it works fine.

Minollo

 
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.