Comments (6)
I'm not sure if this is really possible. It can be difficult as RNG allows some content models which are not allowed in XSD.
There is a reason why the DocBook team abandomed the creation of XSDs...
from geekodoc.
FTR, StackOverflow points at trang -I rnc -O xsd test.rnc test.xsd
... (Which toms already tried with not so much success, I think.)
from geekodoc.
Yes, I've tried to convert it and got the following warning messages:
$ trang -I rnc -O xsd geekodoc5-flat.rnc geekodoc5-flat.xsd
geekodoc5-flat.rnc:333:9: warning: cannot represent required wildcard attribute; approximating
geekodoc5-flat.rnc:338:37: warning: choice between attributes and children cannot be represented; approximating
geekodoc5-flat.rnc:7713:51: warning: choice between attributes and children cannot be represented; approximating
geekodoc5-flat.rnc:7772:51: warning: choice between attributes and children cannot be represented; approximating
/geekodoc5-flat.rnc:10923:5: warning: cannot represent required wildcard attribute; approximating
However, I don't know much about XSD to judge if the schema is really usable. Opening the XSD file in oXygen gives me lots of validation errors (289 items).
I guess, it isn't really of much use. Writing a XSD file is hard and maintaining it even harder.
Can you try that for Visual Studio Code and see if it works? If you can confirm it works I'm fine and will integrate it. If it doesn't work, I don't see any value of adding that.
Personally, I try to stay away from XSDs as much as I can.
from geekodoc.
I think, this is not really going to work, so closing for the time being. If you still think, it's a good idea to have a XSD, feel free to reopen the issues.
from geekodoc.
I agree with prioing this "low" -- but I think it would be good to keep this open, because it would more or less instantly buy us not insignificant editor support.
from geekodoc.
I've tried it, same error messages with GeekoDoc v2. It takes significant resources and knowledge to create a XSD schema. Not happening now, so closing.
from geekodoc.
Related Issues (20)
- Disallow figure and allow informalfigure in tables/entrys
- Validate width attribute in imagedata
- Add para support for variable list HOT 1
- Make empty inline elements fail to validate HOT 1
- Validate <meta> metadata HOT 2
- Adapt GeekoDoc to 5.2CR3 HOT 1
- Create a "latest" link pointing to the latest GeekoDoc HOT 2
- Disallow admon nesting HOT 5
- Disallow xml:id on listitems HOT 1
- Disallow formal elements in admons HOT 4
- Allow othername & lineage HOT 6
- Include ITS schema for GeekoDoc 2 HOT 1
- Switch from master to main as default branch HOT 1
- Make it possible to define multiple products for the same document HOT 6
- Allow footnote HOT 4
- Restrict character set of profiling attributes HOT 9
- Support videoobject to allow screencasts
- Remove indexterm element HOT 1
- Create set of metadata for <info>
- Make chapter abstracts mandatory, restrict them to one para with 150 characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geekodoc.