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

RE: Nesting for-each elements - Can it be done?

Subject: RE: Nesting for-each elements - Can it be done?
From: Chuck Evans <chuck.evans@xxxxxxxxxxxxxxx>
Date: Thu, 16 Aug 2001 17:34:05 -0700
xslt nesting for each
Thank you very much for your help. I'll update the processor as soon as
possible and will look into using apply-templates as you suggest. Maybe this
is another newbie question, but will the new processor work under
Win2K/IIS5? I'm guessing it will, but it never hurts to ask.

Chuck Evans

-----Original Message-----
From: Chris Eckert [mailto:ceckert@xxxxxxxxxxxxx]

1. First, update the MSXML processor to the XSLT compliant version. See the
FAQ at http://www.netcrucible.com/xslt/msxml-faq.htm.

This isn't why your transformation is failing, but most subscribers to the
list use XSLT (not the MS specific dialect TR-WD)

2. The 2nd for-each is not matching any elements because their is no
web_seminars child element of the current context node. The first for-each
makes the context the web_seminars element. The second for-each is looking
for the web_seminars child of the web_seminars element. None exists, so
nothing is displayed.

3. You really should be using apply-templates instead of for-each. I have
included a sample transformation that uses both, to illustrate the
apply-templates approach.

<snip>

 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.