有人能告诉我为什么第一个xquery返回期望的结果,而第二个不返回任何结果吗?在我看来,它们是一样的。
查询1)
for $current-record-eids in collection( "EBOOK-AUTO" )
return $current-record-eids查询2)
let $collection as xs:string := "EBOOK-AUTO"
for $current-record-eids in collection( "{$collection}" )
return $current-record-eids发布于 2013-01-10 00:57:08
你不需要在函数调用中使用Attribute Value Templates。只需像传递普通参数一样传递该值:
let $collection as xs:string := "EBOOK-AUTO"
for $current-record-eids in collection($collection)
return $current-record-eidshttps://stackoverflow.com/questions/14242255
复制相似问题