|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to get node names to user when using redirect
At 2004-02-12 17:56 +0100, Mikael Petterson (KI/EAB) wrote:
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. It is a simple text string composed as you would a text node for the result tree ... so you have the whole of XSLT/XPath with which to create the text: <xsl:message terminate="yes">
Error: creating class <xsl:value-of select="path-to-class-name-here"/>
Terminating.....
</xsl:message>... or some such message as you would like your users to see. I hope this helps. ................... Ken
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








