函数 fn:data() 在 exist-db 中有什么作用?

What does the function fn:data() do in exist-db?

我想知道 fn:data() 函数在 exist-db 中的作用。我在网上找不到答案。

我刚刚找到了我自己问题的答案。如果其他人对此感到疑惑,您可以在此处找到更多信息:https://docs.microsoft.com/en-us/sql/xquery/data-accessor-functions-data-xquery?view=sql-server-ver15

您似乎找到了 data 函数的一个文档,但是,它是 MS SQL Server XQuery 支持的一部分。

通常,W3C XQuery/XPath/XSLT 函数在 https://www.w3.org/TR/xpath-functions/, so the data function in https://www.w3.org/TR/xpath-functions/#func-data 中指定。

或者,如果您需要 eXist-db 特定文档,请使用 eXist-db 文档,可在 http://www.exist-db.org/exist/apps/fundocs/index.html: for the data function http://www.exist-db.org/exist/apps/fundocs/view.html?uri=http://www.w3.org/2005/xpath-functions&location=java:org.exist.xquery.functions.fn.FnModule&details=true#data.1

搜索

对于 data 函数,它可能无关紧要,但一般来说 "XQuery" 在非 XML 数据库(如 MS SQL 中的支持通常不完整 and/or 不基于 current/latest 规范,所以我将从 W3C 规范开始,然后查看正在使用的 XQuery 实现的供应商特定文档,而不是使用第三方文档。