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

RE: XSL-output for xml without parent node

Subject: RE: XSL-output for xml without parent node
From: "Kenny Akridge" <kenny@xxxxxxxxxxxxxxxxx>
Date: Tue, 4 May 2004 19:56:05 -0400
xml parent node
I just read the post thoroughly and realized he said he is getting out if he
only has one node.  I'm sure that is the case.

Check out something like w3schools.com or topxml.com for some decent
tutorials and references.


-----Original Message-----
From: Josh Canfield [mailto:Josh.Canfield@xxxxxxxxxxxx] 
Sent: Tuesday, May 04, 2004 7:00 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  XSL-output for xml without parent node

It can't be this easy, I'm sure you'd get an error if this was true, but you
are wrapping your RESULT elements in a node, right?

I tried your xsl with this xml:

<root>
 <RESULT ID="1" NAME="te"/>
 <RESULT ID="2" NAME="tes"/>
 <RESULT ID="3" NAME="tess"/>
</root>

and got this result:

<html>
   <body>123</body>
</html>

Josh

-----Original Message-----
From: Bret [mailto:laker_66@xxxxxxxxx]
Sent: Tuesday, May 04, 2004 2:04 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  XSL-output for xml without parent node


Hi!
I have the following xml .
 
 <RESULT ID="1" NAME="te"/>
 <RESULT ID="2" NAME="tes"/>
 <RESULT ID="3" NAME="tess"/>
 
  
I have the following xsl
 
 <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xml:space="preserve">
 <xsl:template match="/">
 <html>
 <body>
 <xsl:for-each select="//RESULT">
 <xsl:value-of select="@ID"/>					
 </xsl:for-each>
 </body>
 </html>
 </xsl:template> 
</xsl:stylesheet>

when i use the following xsl i'm not getting any
output . I'm guessing it has to
 do with  <xsl:for-each select="//RESULT"> .
 
I do get output if i have only one record in the XML
file .
 
 Any help appreciated .
 
 Thanks!!!!
 


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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.