Looking for relax-ng version of tsd.xsd

4 posts, 1 answers
  1. Louis
    Louis avatar
    6 posts
    Member since:
    Nov 2010

    Posted 26 Apr Link to this post

    Hello,

    I use Emacs as my editor and I would like to have auto-complete and other xml editing goodness when editing nativescript xml files.

    Unfortunately Emacs nxml-mode does not support `xsd` format out of the box so I need to convert it to `rng` or `rnc` (relax-ng format) to be able to take advantage of emacs nxml-mode.

     I tried to convert tns.xsd to relax-ng using xsltproc and xsdtorng (https://github.com/epiasini/XSDtoRNG) but was unsuccessful. They produces non-valid xml.

    Do you have a relax-ng version of tns,xsd available?

  2. Answer
    Bulent
    Admin
    Bulent avatar
    29 posts

    Posted 29 Apr Link to this post

    Hi Louis,

    We don't have relax-ng version for NativeScript xsd schema and highly appreciate your efforts to build it.
    Currently we don't have plans to prepare one but you could share with us what kind of issues you faced with during conversion. In this way someone familiar with these tools could help too.

    Regards,
    Bulent
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Louis
    Louis avatar
    6 posts
    Member since:
    Nov 2010

    Posted 29 Apr in reply to Bulent Link to this post

    Hi Bulent,

    OK, I understand now that there is no plan to support relax-ng at the moment.

    The current issue that I have during conversion was the output of `xsltproc xsd2rng tsd.xsd` is not a valid rng. The author of xsd2rng does claim that it is not able to convert all xsd perfectly. https://github.com/epiasini/XSDtoRNG

    There are two ways that I think to get a rng version:

    1. Fix xsd2rng. 

     2. Fork xsd-generator (github.com/NativeScript/xsd-generator.git) to support for spiting out relax-ng

    I won't be working on it, but I appreciate if someone does.

    Regards,
    Louis.

  4. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    92 posts

    Posted 03 May Link to this post

    Hi Louis,

    Thank you for sharing your vision for supporting relax-ng schema and pointing out some of the current problems with the conversion process. As NativeScript is an open source product with large community, I would recommend you to log your observations at the issues system in the code repository of nativescript xsd-generator.

    This way it will be easier for you to find people from the community with similar experience and also to keep track on the progress another member has done on the issue.

    Regards,
    Nikolay Iliev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top