This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Eric,

you are trying to match a page/index element that does not exist, try
using ../index.

Axel

> -----Original Message-----
> From: Eric Taylor [mailto:Eric.Taylor@RealPage.com]
> Sent: Thursday, September 14, 2000 12:40 PM
> To: 'XSL-List@mulberrytech.com'
> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]