微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

xsdcxx 如何为 mathml3 创建类?

如何解决xsdcxx 如何为 mathml3 创建类?

我下载了 all mathml3 files。 xsdcxx 似乎无法为导入的文件创建类。我使用xsdcxx cxx-tree --root-element-all --anonymous-regex '%.* .* (.+)/(.+)%$1_$2%' mathml3.xsd来创建c++类,但是它只创建了一个文件mathml3.h|cxx,主要包含以下内容

#include "mathml3-content.hxx"

#include "mathml3-presentation.hxx"

#include "mathml3-common.hxx"

namespace Math
{
  namespace MathML
  {
  }
}

但是,未创建 mathml3-*。我尝试在每个文件上使用此命令,但是,它不起作用,因为它仅在所有文件内容都可用时才起作用:

$ xsdcxx cxx-tree --generate-forward --root-element-all  --anonymous-regex '%.* .* (.+)/(.+)%$1_$2%' mathml3-common.xsd
mathml3-common.xsd:8:80: error: group 'http://www.w3.org/1998/Math/MathML:MathExpression' not found
mathml3-common.xsd:9:54: error: attributeGroup 'http://www.w3.org/1998/Math/MathML:math.attributes' not found
mathml3-common.xsd:77:53: error: group 'http://www.w3.org/1998/Math/MathML:MathExpression' not found

当然 MathExpression 没有在 mathml3-common.xsd 中定义。谁能告诉我哪些选项可以告诉 xsdcxx 生成所有导入的 xsd 文件中的所有类?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。