【问题标题】:Where can I find a valid SVG XML Schema (for ecore generation)?我在哪里可以找到有效的 SVG XML 模式(用于生成 ecore)?
【发布时间】:2011-03-31 11:20:36
【问题描述】:

我尝试将SVG XML Schema 导入EMF,以获取ecore 中的SVG 元模型。但是,由于架构无效,导入失败:确实,svg.xsd 引用了XMLSchema.dtd,它本身引用了不存在的datatypes.dtd!

因此,我尝试从 svg 网站(svg.xsd、XMLSchema.dtd、xlink.xsd、xml.xsd)下载必要的文件,并从another location 下载缺少的 datatypes.dtd。但是,在验证架构时,我不断收到很多错误,例如

Error: XSD: An attribute reference may not have a type
Error: XSD: An <all> content model may not be nested within another content model

等等。

有谁知道我在哪里可以找到有效的 svg XML Schema,或实例在有效 svg 中序列化的 svg ecore 元模型?

【问题讨论】:

    标签: xml xsd svg eclipse-emf eclipse-emf-ecore


    【解决方案1】:

    您提到的 SVG XML Schema 来自 svg 的旧工作草案。目前没有官方支持的 SVG 1.1 的 XML 模式。 SVG Tiny 1.2 确实提供了official RelaxNG schema(仅适用于 SVG Tiny 1.2,并非适用于所有 SVG 1.1)。对于 SVG 1.1,有一个 DTD 可用,但没有 XML 架构。

    请参阅previous discussions 并随时通过发送电子邮件至 www-svg@w3.org 参与讨论。

    【讨论】:

      猜你喜欢
      • 2014-02-22
      • 1970-01-01
      • 2011-12-28
      • 2011-03-22
      • 2011-05-09
      • 1970-01-01
      • 1970-01-01
      • 2020-06-08
      • 2017-10-29
      相关资源
      最近更新 更多