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

Variable as Position Indicator

Subject: Variable as Position Indicator
From: Mark Miller <storefront2000@xxxxxxxxx>
Date: Wed, 3 Jan 2001 13:51:51 -0800 (PST)
position indicator
Greetings,

I am trying to create a 'Next Page' link in a set of
HTML pages. Each <section> has an attribute describing
that section <section subject="jdk">. I am using that
attribute to create the HTML page name for that
section.

The following code creates a variable that can be used
to select a specific section. When testing the code,
the $nextPage variable prints correctly (for testing),
but when it is placed as an index to the section tag,
it always reverts to the number '1'.

Any help would be appreciated. Thanks
Mark

Working Environment:
   Windows 98
   JDK 1.3
   Xerces-1_2_1
   Xalan-j_2_0_D05

CODE SAMPLE:

<!-- Create the 'Next Page' navigation location -->
<xsl:variable
name="currentPage"><xsl:number/></xsl:variable>
<xsl:variable name="nextPage"><xsl:value-of
select="$currentPage + 1"/></xsl:variable>

<!-- VERIFY THE CORRECT NUMBER (THIS WORKS) -->
<xsl:value-of select="$nextPage"/>

<!-- USE NUMBER FOR SPECIFIC LOCATION (THIS DOES NOT
WORK) -->
<xsl:value-of
select="//section[$nextPage]/@subject"/>.html

END CODE SAMPLE



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

 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.