xml + xsl pagination
page.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="page.xsl" ?>
<list>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>13</item>
</list>
page.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name="size" select="6"/>
<xsl:template match="list">
<html>
<script>
<![CDATA[
function nextPage(num){
document.getElementById("content"+num).style.display="";
num--;
document.getElementById("content"+num).style.display="none";
}
function prevPage(num){
document.getElementById("content"+num).style.display="";
num++;
document.getElementById("content"+num).style.display="none";
}
function onInitialize(){
var i = 1;
document.getElementById("content"+i).style.display = "";
}
]]>
</script>
<body onload="onInitialize()">
<xsl:apply-templates select="item[position() mod $size = 1]">
<xsl:with-param name="pages" select="ceiling(count(item) div $size)"/>
</xsl:apply-templates>
</body>
</html>
</xsl:template>
<xsl:template match="item">
<xsl:param n
Ïà¹ØÎĵµ£º
×°FrameWorkǰûÓÐ×°¹ýIIS£¬ºóÀ´Òª·¢²¼£¬×°ÉÏIISÒÔºó³öÏÖÎÊÌâ¡£ÎÊÌâÈçÏÂͼ£º
ÔÚÍøÉÏÕÒµ½ÁËһЩ½â¾ö°ì·¨
½â¾ö°ì·¨Ò»£º
´ò¿ªvs.netÃüÁîÌáʾÐУ¬
ÊäÈëaspnet_regiis -ir -enable
½â¾öµôÁË£¬¾ßÌåµÄ²ÎÊýµÄÒâ˼ÇëÊäÈëaspnet_regiis help²éѯ
½â¾ö°ì·¨¶þ£ºÔËÐÐvs2005ÃüÁîÐУ¨¿ªÊ¼¡¢ËùÓгÌÐò¡¢vs2005¡¢tools£¬Ð´µÃ²»×¼È·£©£ ......
Ò»¸öxmlÎļþµÄÀý×Ó¡¡¡¡ÏÖÔÚÎÒÃÇÔÝÇÒʹÓÓ¼Çʱ¾”À´´´½¨ÎÒÃǵÄxmlÎļþ°É¡£ÏÈ¿´Ò»¸öxmlÎļþ£º
¡¡¡¡Àý1
¡¡¡¡——————————————————————
¡¡¡¡¡´?xml version="1.0" encodin ......
libxml£¨Ò»£©
ÕªÒª
LibxmlÊÇÒ»¸öÓÐÃâ·ÑÐí¿ÉµÄÓÃÓÚ´¦ÀíXML¡¢¿ÉÒÔÇáËÉ¿çÔ ......
XMLÊÇÃÅѧÎÊ¡£ÒªÑ§µÄ»°¡£Ò²ÐèÒªÓÃÐÄ¡£
¼òµ¥µÄÁ˽âÏ¡£¡£
Àý×Ó£ºËùÓнڵã×ֶμ¸ºõ×Ô¼º¹¹Ôì¡£
<?xml version="1.0" encoding="utf-8" ?><!--Õâ¸öÊDZêʶ¡£¡£Ö¸¶¨°æ±¾¡£¡£Ö¸¶¨±àÂë¶Áд>
<ShowList>
<Movie>
<Name>¹¦·ò</Name>
<Poster>gongfu. ......
XML DOM½éÉÜ
Ò»¡¢XML DOM¼ò½é
DOM£¨Document Object Model£¬Îĵµ¶ÔÏóÄ£ÐÍ£©ÊÇÒ»ÖÖÓ¦ÓóÌÐò½Ó¿Ú£¨API£©µÄÓ¦Óã¬Ëü½«Îĵµ£¨ÈçXMLÎĵµ£¬HTMLÎĵµµÈ£©¿´³ÉÊÇÒ»¸öÎĵµ¶ÔÏó£¬È»ºóͨ¹ý³ÌÐòÓïÑÔ£¨ÈçJavaScriptµÈ½Å±¾ÓïÑÔ£¬C++µÈ£©µ÷ÓøÃÎĵµ¶ÔÏ󣬶ÔÎĵµÖеÄÊý¾Ý½øÐдæÈ¡£¬²¢ÀûÓóÌÐò¶Ô»ñÈ¡µÄÊý¾Ý½øÐиú½øÒ»²½µÄ´¦Àí¡£
X ......