我有许多不同的核心,每个都有自己的模式,但它们都共享相同的字段类型。我想删除重复的字段类型声明,并在我的 schema.xml 文件中执行以下操作:
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="foo" version="1.5">
<fields>
<field name="_version_" ...
<field name="id" ...
...
</fields>
<uniqueKey>id</uniqueKey>
<include "/path/to/field_types.xml">
</schema>
但是,我在文档中没有看到任何机制来实现这一点。我找到了一篇提到这个的帖子:
<xi:include href="/path/to/field_types.xml" />
但这给了我一个启动错误:The prefix "xi" for element "xi:include" is not bound.
有人知道如何执行这种类型的原始包含吗?