This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
rendering marginal XML
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] rendering marginal XML
- From: Jay Kline <list at slushpupie dot com>
- Date: Fri, 26 Oct 2001 10:42:06 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@here.com</origin>
<r>you@there.com</r>
<recieved>time recieved</recieved>
<status>Any error messages, etc</status>
<r>you2@there.com</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@slushpupie.com
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