get value to standard out when writing to file.

Mikael Petterson

Usenet Archive
Joined
Nov 3, 2002
Messages
27
Reaction score
0
Hi,

I am using xsl to create a number of java files. If I discover a certain information in my input file (xml) I must report it to the user similair to " Error reported when creating class "AAA". However when I am generating I use redirect to write to files. This means that my error message will go in the java file. Not so good. User will get no info which class is going wrong. I was thinking of using the <xsl:message terminate="yes">
Error: creating class .....
</xsl:message>
But I cannot (or I do not lknow) get my class value into the message-tag. I need to pinpoint my class otherwise it is no use to the user.

Any hints are greatly appreciated!!!

BR

//Mikael
 

Boudewijn Dijkstra

Usenet Archive
Joined
Feb 5, 2004
Messages
224
Reaction score
0
Mikael Petterson said:
Hi,

I am using xsl to create a number of java files. If I discover a certain information in my input file (xml) I must report it to the user similair to " Error reported when creating class "AAA". However when I am generating I use redirect to write to files. This means that my error message will go in the java file.

Use System.err for errors, not System.out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top