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

Re: How do I count number of nodes?

Subject: Re: How do I count number of nodes?
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Wed, 28 Jun 2000 13:36:22 -0400
xslt count number of nodes
alex chang wrote:
> 
> It was actuallly putting the string {count(*)} as the value of colspan.

Which is the XSLT way of doing things.

> I did find something that works though:
>     <xsl:attribute
> name="COLSPAN"><xsl:eval>selectSingleNode("column-header").childNodes.length</xsl:eval></xsl:attribute>

Which isn't.

> This is using the XML DOM Reference from the microsoft site:
> http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/xmlsdk/xmls6g53.htm
> 
> A quick question about this XML DOM Reference- is the syntax in there
> specific to Microsoft and IE? Or can this be used with any parser? It
> doesn't say on they site...

Yes. No. This is one of the most annoying things about Microsoft's XSL
effort - the fact that they don't plaster their site with disclaimers
declaring that the examples they've got don't actually conform to the
spec. This is a constant source of confusion for XSLT coder-wannabe's.

Are you sure you can't switch to server side XSLT?

-- 
Warren Hedley


 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.