Two Laptop Bag
The moose likes XML and Related Technologies and the fly likes how to add xsl style sheet to xml file in java logging Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "how to add xsl style sheet to xml file in java logging" Watch "how to add xsl style sheet to xml file in java logging" New topic
Author

how to add xsl style sheet to xml file in java logging

kamesh aru
Ranch Hand

Joined: Mar 16, 2002
Posts: 150
in the fallowing programme i am getting out put in xml format but how do i add the xsl file in the header throught he programme i.e
<?xml-stylesheet type="text/xsl" href="log.xsl"?>

import java.util.logging.*;

public class Nose {
private static Logger logger = Logger.getLogger("com.wombat.nose");
private static FileHandler fh = new FileHandler("mylog.xml");
public static void main(String argv[]) {
// Send logger output to our FileHandler.
logger.addHandler(fh);
// Request that every detail gets logged.
logger.setLevel(Level.ALL);
// Log a simple INFO message.
logger.info("doing stuff");
try {
Wombat.sneeze();
} catch (Error ex) {
logger.log(Level.WARNING, "trouble sneezing", ex);
}
logger.fine("done");
}
}


thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add xsl style sheet to xml file in java logging
 
Similar Threads
Using java.util.logging.Logger in a multiThreaded application
re: Java Logger Class
logging to a struts - using common logger or jdk 14logger
Logging file
re: help appreciated