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

RE: Empty nodes and xsl:for-each select

  • From: Mike Brown <mbrown@c...>
  • To: 'Newsha Makooi' <Newsha@i...>, xml-dev@l...
  • Date: Tue, 15 Aug 2000 17:33:20 -0600

xsl for each select
Newsha Makooi wrote:
> I am writing in regards to the output table on page 523
> of Michael Kay's XSLT, Programmer's Reference.

Your questions should be asked on the xsl-list.
See http://www.mulberrytech.com/xsl/xsl-list/index.html

<xsl:for-each select="Team/Score" order-by="+ Name">

This indicates that you are not using an XSLT processor; you are probably
using the old version of MSXML and are writing Dec 1998 Working Draft-era
"XSL". See http://www.netcrucible.com/xslt/msxml-faq.htm because all bets
are off until you upgrade.

In XSLT, even if <Score/> elements are empty, selection of them will still
succeed; the node-set identified in the select attribute of <xsl:for-each
select="Team/Score"> will contain those empty element nodes. You can iterate
through them and create empty table cells as you would expect.

If you must use the old MSXML and the old XSL syntax, go straight to the
microsoft.public.xml newsgroup for support. http://msdnnews.microsoft.com/
offers a browser-based newsreader if you need it. Good luck.

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.