[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] rendering marginal XML
I run a list server that generates its logs in XML format. It appears to be valid XML, but it uses a method that is rather clumbersome. It uses this form: <msgSent> <time>time sent</time> <origin>me@xxxxxxxx</origin> <r>you@xxxxxxxxx</r> <recieved>time recieved</recieved> <status>Any error messages, etc</status> <r>you2@xxxxxxxxx</r> <recieved>time recieved</recieved> <status>Any error messages, etc</status> (this repeats for each recipient) </msgSent> (this repeats for each message) The problem is the <recieved> and <status> tags refer to the imediately preceding <r> tag. I would like to generate a list from these logs that contains only email addresses that had errors. The <status> tag will only have text if there was an error, and the tag will not be there at all if there was no error. I realize this is a poor layout, and I will be contacting the author of the software about it, but I still need to get the data out of the logs formatted like this. Can anyone provide some hints on how to create the XSL stylesheet for this? Jay -- Jay Kline list@xxxxxxxxxxxxxx http://www.slushpupie.com -- Q: How do you shoot a blue elephant? A: With a blue-elephant gun. Q: How do you shoot a pink elephant? A: Twist its trunk until it turns blue, then shoot it with a blue-elephant gun. 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
|