日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

xlst 解析 html c,怎樣實現利用xslt把xml文件內容顯示到html文件中?急!

發布時間:2025/4/16 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 xlst 解析 html c,怎樣實現利用xslt把xml文件內容顯示到html文件中?急! 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

#1

'?重新設置每頁的記錄數

Function?setRecordsPerPage()

If?IsNumeric(RecordsPerPage.Value)?Then

intRecordsPerPage?=?CInt(RecordsPerPage.Value)

window_onload

End?If

End?Function

'?顯示頁數信息

Function?setPageCount()

Dim?intTotalRecords

PageCount.innerHTML?=?getNumberOfPages(intTotalRecords)

RecordCount.innerHTML?=?intTotalRecords

CurrentPage.innerHTML?=?1

End?Function

'?計算總頁數和總記錄數

Function?getNumberOfPages(intTotalRecords)

Dim?intPages

intTotalRecords?=?Data.XMLDocument.selectNodes("/*/*").length

intPages?=?intTotalRecords?/?intRecordsPerPage

If?InStr(intPages,?".")?>?0?Then

intPages?=?CInt(Left(intPages,?InStr(intPages,?".")))?+?1

End?If

getNumberOfPages?=?intPages

End?Function

'?“下一頁”的處理

Function?nextPage(intPage)

Dim?strDisplay

Dim?strDateRange

If?CInt(CStr(intPage)?*?intRecordsPerPage)?

intPage?=?CInt(intPage)?+?1

Style.XMLDocument.selectNodes("//@OnClick")(1).Value?=?"previousPage("?&?intPage?&?")"

Style.XMLDocument.selectNodes("//@OnClick")(2).Value?=?"nextPage("?&?intPage?&?")"

Style.XMLDocument.selectNodes("//xsl:for-each/@select")(1).Value?=?"./*[position()?<=?"?&?(CStr(intPage)?*?intRecordsPerPage)?&?"?and?position()?>?"?&?(CInt(intPage)?-?1)?*?intRecordsPerPage?&?"]"

redisplay?(intPage)

End?If

End?Function

'?處理“上一頁”

Function?previousPage(intPage)

Dim?strDisplay

Dim?strDateRange

If?intPage?>?1?Then

intPage?=?CInt(intPage)?-?1

Style.XMLDocument.selectNodes("//@OnClick")(1).Value?=?"previousPage("?&?intPage?&?")"

Style.XMLDocument.selectNodes("//@OnClick")(2).Value?=?"nextPage("?&?intPage?&?")"

Style.XMLDocument.selectNodes("//xsl:for-each/@select")(1).Value?=?"./*[position()?<=?"?&?(CStr(intPage)?*?intRecordsPerPage)?&?"?and?position()?>?"?&?(CInt(intPage)?-?1)?*?intRecordsPerPage?&?"]"

redisplay?(intPage)

End?If

End?Function

'?“第一頁”的處理

Function?FirstPage()

Style.XMLDocument.selectNodes("//@OnClick")(1).Value?=?"previousPage(1)"

Style.XMLDocument.selectNodes("//@OnClick")(2).Value?=?"nextPage(1)"

Style.XMLDocument.selectNodes("//xsl:for-each/@select")(1).Value?=?"./*[position()??0]"

transform()

setPageCount()

End?Function

'?“最末頁”的處理

Function?LastPage()

Dim?intTotalPages

Dim?intTotalRecords

intTotalPages?=?getNumberOfPages(intTotalRecords)

nextPage?(intTotalPages?-?1)

End?Function

華軟新元北京總部全體員工

guoyan用戶賬號>

郭燕姓名>

行政部部門>

外事與文案助理職位>

guoyan@dd.com電子郵件>

員工>

總部員工>

Function?getName(node)

getName?=?node.Item(0).nodeName

End?Function

]]>

第??頁?總??頁????共有??條記錄每頁記錄數:

Sort('')

?

總結

以上是生活随笔為你收集整理的xlst 解析 html c,怎樣實現利用xslt把xml文件內容顯示到html文件中?急!的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。