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

Fwd: Looking for a starting point that can be used tor

Subject: Fwd: Looking for a starting point that can be used torepeatedly/recursively transform an input stream
From: "Alan Johnson" <ajohnson@xxxxxxxxxx>
Date: Mon, 01 Dec 2003 11:26:09 -0500
scientific research corporation
Folks,

 Good morning. I'm new to this list, so that might be a FAQ, but based on my review of it I don't think so, hence my posting. I need a transformation that is, in a sense, "mutating". By this I mean I need the transform to incorporate itself into the output stream, along with the input content, wrapped in a generic container. Consider for example the following xml:

initial XML stream
<resultSet>
 <anElement>value</anElement>
 <anotherElement> value </anotherElement>
</resultSet>

subsequent XML stream

<differentresultSet>
 <anElement>value</anElement>
 <anotherElement> value </anotherElement>
</differentresultSet>

realize that these two streams are not available concurrently, but serially. I also don't want to cache the file explicitly to address this need. I would like to transform the first in such a way that a new transformation is produced, one that could transform the second when passed through it into a merged product, say something like the following:

<containers>
<container>
 <resultSet>
 <anElement>value</anElement>
 <anotherElement> value </anotherElement>
</resultSet>
</container>
<container>
<differentresultSet>
 <anElement>value</anElement>
 <anotherElement> value </anotherElement>
</differentresultSet>
</container>
</containers>

This would be able to add as many containers as required, one for each time it was called. The endpoint at any point in time would be parseable into a set of containers.

Does this make sense? Can someone give me a reasonable starting point?

Thanks, Alan



Alan Johnson
Senior Scientist
Scientific Research Corporation
3860 Faber Place Drive
Suite 100
Charleston, SC 29405
ajohnson@xxxxxxxxxx
(843) 308-2483 (office)
(843) 270-0794 (cell)


 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.