在哪里可以找到有效的SVG XML模式(用于ecore生成)? [英] Where can I find a valid SVG XML Schema (for ecore generation)?

查看:140
本文介绍了在哪里可以找到有效的SVG XML模式(用于ecore生成)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I tried importing the SVG XML Schema into EMF, to obtain the SVG metamodel in ecore. However, the import failed due to the schema not being valid: indeed, svg.xsd references XMLSchema.dtd, which itself references datatypes.dtd, which does not exist!

因此,我尝试从svg网站(svg.xsd,XMLSchema.dtd,另一个位置.但是,在验证架构时,我会不断收到很多错误,例如

Consequently, I tried downloading the necessary files from the svg website (svg.xsd, XMLSchema.dtd, xlink.xsd, xml.xsd), and the missing datatypes.dtd, from another location. However, I keep getting many errors when validating the schema, e.g.

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模式,或在有效svg中序列化了实例的svg ecore元模型吗?

Does anyone know where I could find a valid svg XML Schema, or an svg ecore metamodel whose instances are serialized in valid svg?

推荐答案

您引用的SVG XML模式来自svg的旧工作草案. SVG 1.1当前没有官方支持的XML模式. SVG Tiny 1.2确实提供了官方RelaxNG模式(仅适用于SVG Tiny 1.2 ,并非适用于所有SVG 1.1).对于SVG 1.1,有一个 DTD ,但没有XML模式.

The SVG XML Schema you refer to is from an old working draft of svg. There's currently no officially supported XML schema for SVG 1.1. SVG Tiny 1.2 does provide an official RelaxNG schema (which is only for SVG Tiny 1.2, not for all of SVG 1.1). For SVG 1.1 there's a DTD available, but no XML schema.

请参见先前的讨论,并通过发送电子邮件至www-svg@w3.org随时加入讨论.

See previous discussions and feel free to join in the discussion by sending email to www-svg@w3.org.

这篇关于在哪里可以找到有效的SVG XML模式(用于ecore生成)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆