Coder Social home page Coder Social logo

Comments (6)

tomschr avatar tomschr commented on June 4, 2024

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.

 avatar commented on June 4, 2024

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.

tomschr avatar tomschr commented on June 4, 2024

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. 😉 Well, I can add it to the build chain and integrate it into our geekodoc package, but I guess, nobody would be really happy about that.

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.

tomschr avatar tomschr commented on June 4, 2024

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.

 avatar commented on June 4, 2024

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.

tomschr avatar tomschr commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.