XPROC p:file-mkdir 未找到
XPROC p:file-mkdir not found
我正在使用 XPROC 和 XPROC 处理器 MorganaXProc-IIIse。我实际上只是想通过 XPROC 创建一个目录。但是,我得到的只是这条错误消息:
No visible declaration for '{http://www.w3.org/ns/xproc-step/filesystem}file-mkdir' found: Check spelling, imports or @use-when values.
代码:
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:pf="http://www.w3.org/ns/xproc-step/filesystem" name="pipeline" version="3.0">
<p:variable name="base.dir" select="'.'"/>
<pf:file-mkdir href="${basedir}/lib"/>
</p:declare-step>
由于文档非常有限,如有任何提示,我们将不胜感激。
谢谢
在 XProc 3 的上下文中,file-mkdir
步骤在命名空间 http://www.w3.org/ns/xproc
中,因此使用前缀 p
您的管道声明应该可以工作:<p:file-mkdir href="${basedir}/lib"/>
而不是 <pf:file-mkdir href="${basedir}/lib"/>
.
我正在使用 XPROC 和 XPROC 处理器 MorganaXProc-IIIse。我实际上只是想通过 XPROC 创建一个目录。但是,我得到的只是这条错误消息:
No visible declaration for '{http://www.w3.org/ns/xproc-step/filesystem}file-mkdir' found: Check spelling, imports or @use-when values.
代码:
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:pf="http://www.w3.org/ns/xproc-step/filesystem" name="pipeline" version="3.0">
<p:variable name="base.dir" select="'.'"/>
<pf:file-mkdir href="${basedir}/lib"/>
</p:declare-step>
由于文档非常有限,如有任何提示,我们将不胜感激。
谢谢
在 XProc 3 的上下文中,file-mkdir
步骤在命名空间 http://www.w3.org/ns/xproc
中,因此使用前缀 p
您的管道声明应该可以工作:<p:file-mkdir href="${basedir}/lib"/>
而不是 <pf:file-mkdir href="${basedir}/lib"/>
.