in Education by
A brief search shows that all available (uUnix command line) tools that convert from xsd (XML Schema) to rng (RelaxNG) or rnc (compact RelaxNG) have problems of some sort. First, if I use rngconv: $ wget https://msv.dev.java.net/files/documents/61/31333/rngconv.20060319.zip $ unzip rngconv.20060319.zip $ cd rngconv-20060319/ $ java -jar rngconv.jar my.xsd > my.rng It does not have a way to de-normalize elements so all end up being alternative start elements (it also seems to be a bit buggy). Trang is an alternative, but it doesn't support xsd files on the input only on the output (why?). It supports DTD, however. Converting to DTD first comes to mind, but a solid xsd2dtd is hard to find as well. The one below: $ xsltproc http://crism.maden.org/consulting/pub/xsl/xsd2dtd.xsl in.xsd > out.dtd Seems to be buggy. All this is very surprising. For all these years of XML (ab)use, there no decent command line tools for these trivial basic tasks? Are people using only editors? Do those work? I much prefer command line, especially because I'd like to automate these tasks. Any enlightening comments on this? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Converting XSD is a very hard task; the XSD specification is a bit of a nightmare and extremely complex. From some quick research, it seems that it is easy to go from RelaxNG to XSD, but that the reverse may not be true or even possible (which explains your question about Trang). I don't understand your question about editors - if you are asking if most people end up converting between XSD and RNG by hand, then yes, I expect so. The best advice may be to avoid XSD if possible, or at least use RNG as the definitive document and generate the XSD from that. You might also want to take a look at schematron.

Related questions

0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    For example: man(1), find(3), updatedb(2)? What do the numbers in parentheses (Brit. "brackets") ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    For example: man(1), find(3), updatedb(2)? What do the numbers in parentheses (Brit. "brackets") ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    What is the command used to check the running Splunk processes on Unix/Linux?...
asked Oct 31, 2020 in Technology by JackTerrance
0 votes
0 votes
    You are working with the following XSD fragment. What does it say about the element? element has child elements which can appear in any order...
asked Mar 10, 2023 in Technology by JackTerrance
0 votes
    As stated in the title, i'm looking for an XML schema (XSD-file) for the Glade markup language? ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    i create this class and it have this constructor : public class ReturnResult : ImplicitReturnResult { public bool ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I want to convert the matched expression in string or int. But in .NET Framework I do not find ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which conversion is easier, “Bitmap to Vector” or “Vector to Bitmap”? Give reasons. Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    Which conversion is easier, “Bitmap to Vector” or “Vector to Bitmap”? Give reasons. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
...