Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xquery/Xpath/*的含义是什么:_Xpath_Xquery - Fatal编程技术网

Xquery/Xpath/*的含义是什么:

Xquery/Xpath/*的含义是什么:,xpath,xquery,Xpath,Xquery,Xquery/Xpath/*的含义是什么: (:此处$patterns看起来像:) 声明函数local:transform($text作为text(),$patterns作为元素(pattern)*){ 如果(不是($patterns))那么 $text 其他的 让$patternsremaining:=$patterns[position()>1], $modifiedtext:=replace($text、$pattern/@match、$pattern/@replace) 返回 如果($l

Xquery/Xpath/*的含义是什么:

(:此处$patterns看起来像
:)

声明函数local:transform($text作为text(),$patterns作为元素(pattern)*){
如果(不是($patterns))那么
$text
其他的
让$patternsremaining:=$patterns[position()>1],
$modifiedtext:=replace($text、$pattern/@match、$pattern/@replace)
返回
如果($local:language=“French”而不是($patterns[@match='le']),那么(
局部:变换($modifiedtext,($patternsremaining,))
)
否则(
本地:变换($modifiedtext,$Patterns保留)
)
};
是一个XPath表达式,用于选择根(文档)节点的所有元素子级

这相当于:

/child::*

由于任何格式良好的XML文档必须只有一个顶层元素(文档节点的子元素),因此上述两个表达式只选择一个元素——XML文档的顶层元素。

它是根节点的子元素。但这和你发布的消息来源有什么关系?没有/*@BeniBela标记引擎将其隐藏。我编辑了这个问题来揭露它。@Ross Patterson:看起来/*根本不存在。
/*
/child::*