473,626 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conversion from DTD and W3C to Relax NG

We have a small (~50 line) DTD and a slightly larger (~300 line) W3C
schema that we need to convert to Relax NG. (And I have a larger W3C
schema that I may some day convert.) I was hoping that there would be
some tools to get us started, but the list at http://relaxng.org/#conversion
is not too promising. The one tool that looks like it would actually
do such a conversion, the Sun RELAX NG Converter, appears to have
disappeared from the world (all the web links are dead). (It
admittedly seems to have been buggy, from what I've read.)

But maybe I'm being lazy; maybe it would be better to do the
conversion by hand, since we need to familiarize ourselves with Relax
NG anyway. And these aren't such large files anyway... So: are there
guides to how to convert? (Nothing obvious showed up in Google.) Or
do we have to just get the two kinds of schemas in our heads, at least
for as long as it takes us to do the conversion?

Mike Maxwell
CASL/ U MD
Jun 27 '08 #1
2 1732
* McSwell wrote in comp.text.xml:
>We have a small (~50 line) DTD and a slightly larger (~300 line) W3C
schema that we need to convert to Relax NG. (And I have a larger W3C
schema that I may some day convert.) I was hoping that there would be
some tools to get us started, but the list at http://relaxng.org/#conversion
is not too promising. The one tool that looks like it would actually
do such a conversion, the Sun RELAX NG Converter, appears to have
disappeared from the world (all the web links are dead). (It
admittedly seems to have been buggy, from what I've read.)
Try <https://msv.dev.java.ne t/>.
--
Björn Höhrmann · mailto:bj****@h oehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Jun 27 '08 #2
On May 22, 5:22 pm, Bjoern Hoehrmann <bjo...@hoehrma nn.dewrote:
Try <https://msv.dev.java.ne t/>.
The Sun Multi-Schema Validator? Oh, I see--there are four other
projects in the downloads not described there, including
'mgconv.zip'. That looks like what I want--thanks!

Mike Maxwell
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2754
by: Olivier Hoarau | last post by:
Hello, I have to validate a xml file, for that I use libxml and its function xmllint which needs the RELAX NG "full" schema of the file. I have only its RelaxNG compact schema, I have to transform it first in Relax NG "full". To transform RelaxNG compact to RelaxNG "full", I use rnc2rng written in Python. I have some difficulties, the file I obtain from a RELAXNG compact file is not conform.
6
2484
by: Pieter | last post by:
I've read a lot of posts on "why relax ng is so very good" and on "why w3c xml schema should be the only schema language". I'm, however, still not clear on why I should prefer one over the other. I've made a small list of some good and bad points of both. These points don't really go into the grammar aspects of these languages, but are more about secondary aspects. The grammar aspects are different, but both are suitable for validating...
0
1109
by: Henri Sivonen | last post by:
I have written a servlet wrapper and a custom entity resolver for Jing. My code needs to decide whether to instantiate a compact syntax schema reader or an XML syntax schema reader. I would very much like to do the Right Thing. Currently, my code does the following; 1. If the HTTP Content-Type of the schema is application/vnd.relax-ng.rnc, the schema is treated as a compact syntax schema. 2. If the HTTP Content-Type of the schema is...
2
1531
by: bauer_markus81 | last post by:
hallo, I have been looking at profound information about the strengths and weaknesses/limitations of Relax NG. I'd be grateful for comments. regards markus b.
5
1743
by: mhuhn.de | last post by:
I am using XML Schema for quite a while but haven't written a single line of Relax NG yet. For what I know, I cannot define static content within an XML Schema. For example, I have the following structure: <colors> <color>green</color> <color>red</color> </colors>
7
2278
by: slitvinov | last post by:
I am learning Relax NG. The problem is that I cannot figure out how to make a schema for a table. In my case I would like to make a table with any name of child elements (columns) but columns should have the same number of child elements (cell). Say this file is valid <table> <column> <cell/> <cell/> </column>
4
1612
by: withtape | last post by:
Somebody please, please help me. I'm getting started using Relax NG to describe document schemas. After reading the grammar summarized by http://www.relaxng.org/spec-20011203.html (Section 5), I conclude that the following is a valid Relax NG schema: <grammar xmlns="http://relaxng.org/ns/structure/1.0"> <start> <attribute name="wtf"/> </start> </grammar>
1
1880
by: Torsten Munkelt | last post by:
Hi, I want to validate an XML document applying a combination of RELAX NG and Schematron. I have not found an appropriate validator. Would you please send me links to such validators. I would like to easily access it from within Java and from console. Thank you very much for your answers in advance.
15
2041
by: bcpkh | last post by:
Hello All I have a simple task that is driving me crazy. A string representing a duration in the following format is passed to my application, a function is dedicated to convert this duration to seconds; H:MM:SS e.g. 0:00:00 or 00:12:45
0
8259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8696
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7188
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6119
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.