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

RE: for-each--stuck on very basic issue

Subject: RE: for-each--stuck on very basic issue
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Thu, 14 Sep 2000 13:37:10 +0100
RE: for-each--stuck on very basic issue
Eric,
A week ago I would have said it is because you don't have a <pages template
but apparently you don't need one. Try putting a pages template in anyway.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Eric Taylor
>Sent: 14 September 2000 11:40
>To: 'XSL-List@xxxxxxxxxxxxxxxx'
>Subject: xsl:for-each--stuck on very basic issue
>
>
>making my first attempt at real XML (i.e., not MSXML2, which I'm still
>stumbling around with anyway)--just installed Michael Kay's Instant Saxon
>(thanks, Mike), but am not getting anything back from my <xsl:for-each
>select="index">.  What am I overlooking?  Thanks.  Eric
>
>My XML looks like this:
>  <pages>
>    <page name="aaa" location="bbb"><index entry="ccc"/><index
>entry="ddd"/></page>
>    <!-- bunch of addition page elements  -->
>  </pages>
>
>My XSL looks like this:
>  <?xml version="1.0"?>
>  <xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
>  <xsl:template match="/">
>    <html>
>      <head></head>
>      <body>
>        <xsl:apply-templates/>
>      </body>
>    </html>
>  </xsl:template>
>
>  <xsl:template match="page">
>    <p><xsl:value-of select="@name"/></p>
>    <xsl:for-each select="index">
>      <p>THIS IS NOT SHOWING UP</p>  <!--*** problem here  -->
>    </xsl:for-each>
>  </xsl:template>
>
>  </xsl:stylesheet>
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.