[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

rendering marginal XML

Subject: rendering marginal XML
From: Jay Kline <list@xxxxxxxxxxxxxx>
Date: Fri, 26 Oct 2001 10:42:06 -0500
jay kline
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.