【发布时间】:2020-05-26 13:43:44
【问题描述】:
这个转换叫做 docUri.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" expand-text="yes">
<xsl:output method="text"/>
<xsl:template match="document-node()">{document-uri(.)}</xsl:template>
</xsl:stylesheet>
使用此 xQuery 从存在数据库调用时不返回正在处理的 xml 文件的名称
xquery version "3.1";
transform:transform(doc("/db/apps/data/aDatabaseFile.xml"),
doc("/db/apps/docUri.xsl"),())
它应该返回“/db/apps/data/aDatabaseFile.xml”
MarkLogic XSLT doc(uri) or document(uri) function not resolving uri in context of content database?似乎也有类似的问题
【问题讨论】: