ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

RE: Passing counter value as macro arg.

Subject: RE: Passing counter value as macro arg.
From: "Grant Steinfeld" <grangrid@xxxxxxxxxxxxx>
Date: Fri, 19 Feb 1999 18:42:17 -0500
grant steinfeld
Counter values and parameter passing, seem like a necessary language
constructs.

Also how could a counter exist in the XSL document itself.  It would be nice
to be able to have an incrementing counter in a for-each, for display and
calcultions based off row totals.

Grant

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Evan Easton
Sent: Friday, February 19, 1999 8:52 AM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: Passing counter value as macro arg.


Does the working draft preclude using an xsl:attribute to set the value
for a macro arg?  What I'm trying to do is pass a counter value to an
macro.  My XSL processor complains that the arg needs a value
attribute.  Is this XSL invalid or in the XSL processor incomplete.

   <xsl:invoke name="fooMacro">
      <xsl:arg name="the-arg">
         <xsl:attribute name="value">
            <xsl:counter name="myCounter"/>
         </xsl:attribute>
      </xsl:arg>
   </xsl:invoke>

See the 16-December-1998 Draft Section 2.7.2.3.  Not being an adept XSL
spec interpreter, I'm not sure if the above code is included, excluded,
or ambiguously untreated.

If this is invalid XSL, I wouldn't mind a pure XSL alternative for
passing counter values as macro arguments.

Evan


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.