  | |  | How to avoid <xsl:message > instruction prints stylesheet file informations ? | How to avoid <xsl:message > instruction prints stylesheet file informations ? 2006-10-28 - By André Mercadier
Hello,
I'm using Xalan 2.7.0 with Xerces 2.7.1 on a MS-DOS environment with the command line utility to perform XSLT transformations (java org.apache.xalan .xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out -PARAM param value).
My foo.xsl stylesheet contains several <xsl:message>STEP xxx</xsl:message> to trace the steps it reaches, but the printed message is not only "STEP xxx" but :
"file:///c:/my_very_complex_directory/foo.xsl ; Line x; Column y; STEP xxx".
Is it possible to avoid the stylesheet file informations (which don't interest users), keeping only the message in the <xsl:message> tag ?
Thanks a lot. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4937.800" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2><FONT face=Arial size=2><SPAN class=440050614-25102006>Hello,</SPAN></FONT></DIV> <DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006>I'm using Xalan 2.7.0 with Xerces 2.7.1 on a MS-DOS environment with the command line utility to perform XSLT transformations (java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out -PARAM param value).</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006>My foo.xsl stylesheet contains several <xsl:message>STEP xxx</xsl:message> to trace the steps it reaches, but the printed message is not only "STEP xxx" but :</SPAN></FONT></DIV> <DIV><FONT size=+0><SPAN class=440050614-25102006><FONT face=Arial size=2></FONT></SPAN></FONT> </DIV> <DIV><FONT size=+0><SPAN class=440050614-25102006><FONT face=Arial size=2>"</FONT><A target=_blank href="file:///c:/my_very_complex_directory/foo.xsl%20;%20Line%20x;%20Column%20y ;%20STEP%20xxx"><FONT face=Arial color=#000000 size=2>file:///c:/my_very_complex_directory/foo.xsl ; Line x; Column y; STEP xxx</FONT></A><FONT face=Arial size=2>".</FONT></SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006>Is it possible to avoid the stylesheet file informations (which don't interest users), keeping only the message in the <xsl:message> tag ?</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=440050614-25102006>Thanks a lot.</SPAN></FONT></DIV></FONT></DIV></BODY></HTML>
|
|
 |