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

Re: xsl:for-each--stuck on very basic issue

Subject: Re: xsl:for-each--stuck on very basic issue
From: AndrewWatt2000@xxxxxxx
Date: Thu, 14 Sep 2000 09:03:21 EDT
Re: xsl:for-each--stuck on very basic issue
In a message dated 14/09/00 12:50:10 GMT Daylight Time, 
Eric.Taylor@xxxxxxxxxxxx writes:

>   <xsl:template match="page">
>      
> <xsl:value-of select="@name"/>
>      <xsl:for-each select="index">
>        
> THIS IS NOT SHOWING UP  <!--*** problem here  -->
>      </xsl:for-each>
>    </xsl:template>

Eric,

I am not precisely sure what it is you want to do. You didn't say. At the 
moment your code seems to say for each <index> element do nothing. So, on 
that basis, I would expect it to produce nothing within the <xsl:for-each>.

However, perhaps you wanted to achieve something like this. This works 
adequately on Saxon. It doesn't produce anything spectacular but produces 
output of the value of the entry attribute for each <index> element.

<xsl:template match="page">
<xsl:value-of select="@name"/>
   <xsl:for-each select="index">
   <xsl:value-of select="@entry"/>
      
THIS IS NOT SHOWING UP  <!--*** problem here  -->
   
   </xsl:for-each>
</xsl:template>

I guess it may be something like that that you wanted to produce.

Within the <xsl:for-each> element you need to define the processing you want 
to be carried out.

I hope that helps.

Andrew Watt


 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.