debug info in XML, and DSD 2.0

I've been working in my spare time on the idea of converting dwarf debugging information into XML so that I can format it as XHTML using a stylesheet, and so I can check it using a Schema of some sort. When I started fiddling today I assumed that using a DTD was the way to go, that what one does with XML, no? Well after banging my head against the DTD format for a while, and looking for help on (our friend) the internet, I stumbled across a more general description of different ways to write XML schemas alternatives. Notice the lower case schema there. One of the several ways is called simply "XML Schema", which is an alternative to DTD and DSD etc. Don't get confused yet, you just started reading.

I had to kick myself in the head again tonight. Every time I get really stumped on trying to find good information on the internet, I end up realizing that everything I wanted was already there in Wikipedia. In the really confusing situations where I'm jumping in the deep end of the pool, all I really need to start me out is a two page summary of the state of the art. something to put all the technology jargon into context for me. But I still haven't learned to look on Wikipedia first. \*kick\* \*ouch\*

God, lists look ugly in the hacked theme I'm using. I should fix them up one day. Anyway, here is good info on the different ways to formally describe your XML so that you can check it, and make sure it doesn't have bugs.

From oldest and klunkiest to newest and hottest, the different languages are: 1) DTD 2) "XML Schema" 3) DSD 2.0

Comments:

You might take a look at Relax NG, which is an OASIS and ISO standard and by far the most elegant, easy-to-use, and easy-to-read way to specify XML grammars that I've worked with. I have to admit I haven't even heard of DSD (I'd probably better look into it) but Relax NG certainly deserves a place alongside DTDs and W3C XML Schema in your list.

Posted by Clayton Wheeler on February 01, 2007 at 07:08 AM PST #

Thanks Clayton! I found this write up: <a href ="http://www.research.att.com/projects/DSD/relax-ng-nwq.html"> DSD and Relax NG comparison at AT&T I definately should have mentioned Relax NG. I think Relax NG is very similar in flavor to DSD. Actually, after struggling with DSD for a bit, it looks like Relax NG might be easier to create. I wish I knew which one was going to win in the end. I'd be willing to use whichever one was going to be more popular. The whole point of using XML is so that other projects and people can leverage what you create.

Posted by Chris Q on February 01, 2007 at 07:08 AM PST #

Post a Comment:
Comments are closed for this entry.
About

Chris Quenelle

Search

Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today