This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Displaying n items at a time


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]