This is a migrated thread and some comments may be shown as answers.

Looking for relax-ng version of tsd.xsd

3 Answers 27 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Louis
Top achievements
Rank 1
Louis asked on 26 Apr 2016, 07:23 AM

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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Bulent
Telerik team
answered on 29 Apr 2016, 12:53 PM
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
0
Louis
Top achievements
Rank 1
answered on 30 Apr 2016, 02:23 AM

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.

0
Nick Iliev
Telerik team
answered on 03 May 2016, 01:04 PM
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
Tags
General Discussion
Asked by
Louis
Top achievements
Rank 1
Answers by
Bulent
Telerik team
Louis
Top achievements
Rank 1
Nick Iliev
Telerik team
Share this question
or