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

Re: Beginner-Problem

Subject: Re: Beginner-Problem
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Fri, 22 Nov 2002 11:42:19 +0000
Re:  Beginner-Problem
Hi sorin,

How to make that work? I tried this:

<xsl:template match="/">
 <xsl:for-each select="/energyreport/energyconsumption">
    <xsl:value-of select="@year"/>
</xsl:for-each>
</xsl:template>

That gives out the years, that's fine... but how to select the energy-attribute (only once each)?

Using your approach, I would put in


<xsl:for-each select="terajoule">
   <xsl:value-of select="@energy"/>
</xsl:for-each>

inside the other for-each loop.

Sincerely
Ragulf Pickaxe :)

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus



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.