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

RE: XPath count function in JavaScript

Subject: RE: XPath count function in JavaScript
From: Jeff Beadle <Jbeadle@xxxxxxxx>
Date: Thu, 6 May 2004 08:29:36 -0400
xpath count variable
Hi Tomas,

The reason you are not seeing the output of the count is because you are
loading the value into an xsl:variable and not to the output of the
transform.

An xsl:variable is pretty much like any other "variable" construct in other
programming languages.  So, you are not going to see the variables value
unless you "return it" or display it somehow from its context/scope.

In order to get the value to the output stream of the transform, you need to
either select the value from the variable or directly output the count value
... either way you'll most likely want to use xsl:value-of, which I believe
someone has already shown you how to do.

This is a pretty fundamental concept, so you may want to look into getting a
book on xslt to learn more about the language.

- Jeff

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.