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

Displaying n items at a time

Subject: Displaying n items at a time
From: a j <ajibbsxsl@xxxxxxxxx>
Date: Wed, 13 Jun 2001 07:55:48 -0700 (PDT)
n items
I know this should be basic knowledge but I can't seem
to make it work.  Here is the original XSL file:

*************** START **********************
<?xml version='1.0'?>
<xsl:stylesheet language="jscript"
xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:for-each select="ROOT/ERROR">
	Error number is:<xsl:value-of select="@NBR" /><br/>
	Error Message is:<xsl:value-of select="@MSG"
/><br/><br/>
</xsl:for-each>
<table border="1" cellspacing="0" cellpadding="0">
	<tr>
		<TD align='center'>ml_sc_no</TD>
		<TD align='center'>sc_ty_code</TD>
		<TD align='center'>dsc1</TD>
		<TD align='center'>dsc2</TD>
		<TD align='center'>dsc3</TD>
		<TD align='center'>cusip</TD>
		<TD align='center'>base_curr_cd</TD>
		<TD align='center'>sedol</TD>
		<TD align='center'>cedol</TD>
		<TD align='center'>isin</TD>
		<TD align='center'>valoren</TD>
		<TD align='center'>ric</TD>
		<TD align='center'>ilxoccurs</TD>
		<TD align='center'>sec symbol</TD>
		
	</tr>
	<xsl:for-each select="ROOT/ROW">
	<tr>
		<TD ><xsl:value-of select="@ML_SC_NO"/></TD>
		<TD align='center'><xsl:value-of
select="@SC_TY_CODE"/></TD>
		<TD><xsl:value-of select="@DSC1"/></TD>
		<TD><xsl:value-of select="@DSC2"/></TD>
		<TD><xsl:value-of select="@DSC3"/></TD>
		<TD align='center'><xsl:value-of
select="@CUSIP"/></TD>
		<TD align='center'><xsl:value-of
select="@BASE_CURR_CD"/></TD>
		<TD align='center'><xsl:value-of
select="@SEDOL"/></TD>
		<TD align='center'><xsl:value-of
select="@CEDOL"/></TD>
		<TD align='center'><xsl:value-of
select="@ISIN"/></TD>
		<TD align='center'><xsl:value-of
select="@VALOREN"/></TD>
		<TD align='center'><xsl:value-of
select="@RIC"/></TD>
		<TD align='center'><xsl:value-of
select="@ILXOCCURS"/></TD>
		<TD align='center'><xsl:value-of select="."/></TD>


	</tr>
	
  </xsl:for-each>
</table>

	SMDB_SAVE_AREA=<xsl:value-of
select="ROOT/SMDB_SAVE_AREA/." /><br/>
	SMDB_SAVE_KEY_AREA=<xsl:value-of
select="ROOT/SMDB_SAVE_KEY_AREA/." /><br/>	


</xsl:template>
</xsl:stylesheet>
************** END ***********************


I am trying to make the contents of the ROOT/ROW level

display n items at a time depending on user input.  I
have two questions:

1) Can I pass a parameter (variable) from my ASP page
to the XSL which does formatting for the XML file? 
2) What changes do I need to make at the ROOT/ROW
level to display n items at a time and not all at
once.

Thanks so much in advance.

Andrew

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.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.