Re: [svgwg] Building a schema for SVG / Creating an SVG profile for IEC 61850-6-2 (#699)

@sideshowbarker @AmeliaBR @dirkschulze 
Hello SVG TF, 
The IEC 61850-6-2 Task Force has created the first attempt of an SVG2 Schema, **which we are submitting for your review and comment.** 

This was built upon the unofficial RelaxNG, and was translated using TRANG.  Attached is the schema and hand-modified RNC files that made them acceptable to the TRANG translator. You can look at the file dates in that folder to see that we modified svg11-inc.rnc plus 5 other files. That folder is attached as SVG11.zip. We also attached a sample SVG file (Android.svg) that was used during the testing process. 
 
Summary:

- Started with files in https://github.com/validator/validator/tree/master/schema/svg11
- Iteratively ran TRANG.jar and modified the RNC files until TRANG stopped emitting errors
- Iteratively attempted to validate XSD schema and fix XSD files
- TRANG error in svg-basic-structure.xsd cause attribute “abstract” to be output twice
- I could not get URI and langcode types working so I just changed to string
- There was a linefeed character entity issue "
"
- Rect element in clip caused problems
- Iteratively attempted validation of Android.svg and hand-edited schema
- Main issue was the XML attributes “base” and “lang” and “space” which seemed to become mandatory

Note that inside the folder is a Windows batch file (RunTrang.b_a_t) which has comments on changes that were needed after the automatic TRANG translation from RelaxNG to XML schema. Most distressing was embedded comments from “hsivonen” who used “—” as comment delimiters.

Any thoughts on ownership and maintenance of this draft SVG2 schema? We thank you in advance for any input you may have. 
[svg11.zip](https://github.com/w3c/svgwg/files/5869347/svg11.zip)
[SVG_XSD_20201002.zip](https://github.com/w3c/svgwg/files/5869354/SVG_XSD_20201002.zip)
[android.svg.zip](https://github.com/w3c/svgwg/files/5869363/android.svg.zip)



-- 
GitHub Notification of comment by IEC61850
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/699#issuecomment-767080968 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 25 January 2021 20:07:29 UTC