环境: eXist 4.2.1-XQuery3.1-XSLT3.0-TEI-XML文档
使用eXide接口,我尝试用XSL文件和HTML的输出对TEI文档进行转换。
到目前为止,我一直在开发XML文档及其在氧气中的XSL转换。激发氧气的转换或使用终端,两者都是无工作误差的。现在,我正在使用eXist (它将包含数千个TEI)准备一个web应用程序。
我试图使用以下xquery测试在eXist中启动相同的转换:
let $result := transform:transform(doc("xmldb:exist://db/apps/deheresi/resources/documents/ms609_0001.xml"), doc("xmldb:exist://db/apps/deheresi/resources/documents/document_style.xsl"), ())
return $result?outputeXide只返回以下内容:
exerr:ERROR Unable to set up transformer: Stylesheet compilation failed: 62 errors reported [at line 3, column 16]
我是eXist DB的新手,还没有弄清楚如何找出错误的原因。
注意:我的文档都组织在一个eXist集合中,与我的计算机上的设置相同,因此所有相关位置都应该正确工作吗?
发布于 2018-10-10 11:19:52
首先,当对数据库中的路径使用doc和collection函数时,您不需要XML:DB,而只需使用:
transform:transform(doc("/db/apps/deheresi/resources/documents/ms609_0001.xml"),
doc("/db/apps/deheresi/resources/documents/document_style.xsl"), ())错误应该在exist.log中,默认位置是$EXIST_HOME/webapp/WEB-INF/logs。否则,您可能会在运行eXist-db的终端会话的"Standard“上找到它们。
如果您使用YAJSW (服务包装器)运行eXist-db,您可能还需要检查$EXIST_HOME/tools/yajsw/logs。
https://stackoverflow.com/questions/52738518
复制相似问题