Where can I find a valid SVG XML Schema (for ecore generation)?
Asked Answered
L

1

10

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!

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

and so on.

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

Lydon answered 18/8, 2010 at 10:14 Comment(0)
G
19

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.

See previous discussions and feel free to join in the discussion by sending email to [email protected].

Gipon answered 18/8, 2010 at 11:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.