刚学xml,请问count(child::*[name()='pager_list'])这句话是什么意思?谢谢!

luoxiang2000 2003-09-29 08:51:24
主要是不理解:
1、child::是什么意思?child后面怎么跟着两个:?
2、name()换成nodeName()为什么不行?
...全文
43 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
colee 2003-10-09
  • 打赏
  • 举报
回复
或count(child::pager_list)
colee 2003-10-09
  • 打赏
  • 举报
回复
位置路径的制定规则如下:
LocationPath ::= RelativeLocationPath
| AbsoluteLocationPath
AbsoluteLocationPath ::= '/' RelativeLocationPath?
| AbsoluteLocationPath
RelativeLocationPath ::= Step
| RelativeLocationPath '/' Step
| AbbreviatedRelativeLocationPath

count(child::*[name()='pager_list']) 表示当前节点下所有节点名为‘pager_list’的节点数
可简写成count(pager_list)
luoxiang2000 2003-10-07
  • 打赏
  • 举报
回复
???
luoxiang2000 2003-09-30
  • 打赏
  • 举报
回复
一个:代表--用来将名字作用范围前缀与元素或属性名分隔开
两个:表示什么?
月光易水 2003-09-29
  • 打赏
  • 举报
回复
1. 代表当前节点下所有的子节点。查阅msxml sdk
2. msxml早期xsl标准支持nodeName(),w3c 标准(xslt1.0)以name()取代之


:_)

8,909

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧