Paging functionality is implemented only with XSL and ASP. Source

Source: Internet
Author: User
Tags xsl xsl file
ASP file Approximate structure:
<%@ Language=vbscript%>
<!--#include file=include/lib.asp-->
<%
Cc=server. MapPath ("Trans.xml")
Set Source=server. CreateObject ("Msxml2.domdocument")
Source.async=false
Source.load (CC)
Xslfile=server. MapPath ("index.xsl")
Set Style=server. CreateObject ("Msxml2.domdocument")
Style.async=false
Style.load (Xslfile)
' Response.Write Source.transformnode (Style)
Response.Write gb_html (Source.transformnode (style))
Response.End
%>
The XML data that------------------------------------load comes in is this:
<?xml version= "1.0" encoding= "GB2312"?>
<root>
<function>
<PO> tags in the later XSL file are "<xsl:for-each>" </PO>
<PO>........................</PO>
<PO>........................</PO>
<PO>........................</PO>
</function>
</root>
------------------------------------
The contents of the XSL file:
<?xml version= "1.0" encoding= "GB2312"?>
<xsl:stylesheet version= "1.0" xmlns:xsl= "Http://www.w3.org/1999/XSL/Transform" >
<xsl:include href= "include/ydzhongxin.xsl"/><!--embedded header template, tail template-->
<xsl:param name= "yd" >7</xsl:param><!--invoke parameters for the level two navigation bar-->
<xsl:param name= "page" > <xsl:value-of select= "Count (//po)"/></xsl:param>
<!--define root templates-->
<xsl:template match= "/" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<link rel= "stylesheet" type= "Text/css" href= "Include/style.css"/>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.