Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can these schemata validate Inkscape SVGs? #2

Open
kozross opened this issue May 6, 2019 · 3 comments
Open

Can these schemata validate Inkscape SVGs? #2

kozross opened this issue May 6, 2019 · 3 comments

Comments

@kozross
Copy link

kozross commented May 6, 2019

I've tried using svg.xsd to validate an SVG file created using Inkscape. However, when I try that, I get these errors (using xmlstarlet):

$ xmlstarlet val -e --xsd ~/svg.xsd wz402a.svg
wz402a.svg:18.33: Element '{http://www.w3.org/2000/svg}svg', attribute '{http://www.inkscape.org/namespaces/inkscape}version': The attribute '{http://www.inkscape.org/namespaces/inkscape}version' is not allowed.
wz402a.svg:18.33: Element '{http://www.w3.org/2000/svg}svg', attribute '{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}docname': The attribute '{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}docname' is not allowed.
wz402a.svg:38.36: Element '{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}namedview': This element is not expected.
wz402a.svg - invalid

Am I using the schemata incorrectly?

@kozross
Copy link
Author

kozross commented May 19, 2019

Any progress on this issue?

@mnvx
Copy link

mnvx commented May 20, 2019

Hello. It seems what problem in Inkskape's exporter. Try to fix it before validation. Maybe it will helps: https://stackoverflow.com/q/13744422/1920758

@kozross
Copy link
Author

kozross commented May 20, 2019

@mnvx So I guess it doesn't like things namespaced with inkscape:? I haven't done any exporting - I just used it on an Inkscape SVG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants