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

RE: Real-time XML to XML Conversion?

Subject: RE: Real-time XML to XML Conversion?
From: "Jonathan M. Sprinkle" <Jonathan.Sprinkle@xxxxxxxxxxxxxx>
Date: Tue, 10 Jun 2003 15:24:52 -0500
time conversion chennai
> 	<xsl:for-each select="//USER">
> 	<AGENT>
> 		<AGENTNAME><xsl:value-of select="."/></AGENTNAME>
>         <xsl:apply-templates select="following-sibling::*"/>
> 	</AGENT>
> 	</xsl:for-each>

Hi Heath,

It appears that your doubly matching your agent clyde because of a
miscalculation in what you need to do once you perform a match.  Look at
your algorithm again, and notice that you 

while( user )
1. Do user
2. Do sibling
end while

now, since the sibling is also a user, then you are doing two users in
the outer loop (in your sample file), and also doing the second of those
two in the inner loop.  if you had three, it would be like this:

sample: users a,b,c
output: agents a,b,c,b,c,c

of course, with the limited children of some of the because they are
matched separately.

> My second question is one of functionality. While what I've tried so 
> far does produce an output file that looks like a new XML file, that's

> not what I need. I actually need the new XML data to be immediately 
> available to be manipulated by the XSLT which is doing the tree 
> conversion. Make sense?
> 

Is this similar to the current thread on " read/write in the same
xml file" ??

I hope this helps,
Jonathan


 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.