Discussion
I have a generic HTML/XML parser that I wrote some time ago. I use it for a variety of things, the most common of which, is as a means of entering and processing custom command scripts for software that I create.
Obviously it has lots of benefits, the most obvious of which is that the basic syntax is alays the same, although the semantics can be custom as I need. When I wrote the parser I didn't really want to get bogged down, in the details of DTD syntax. The result is that I have a "DTD object", but it's not alot like the W3C idea of a DTD file.
In my DTD, I can specify the tag names of those tags that have optional and forbidden destructors, but that's about it.
What this means is that I have a convenient means of producing and wrking with XML/HTML to a custom and local DTD.
I'd quite like (although it's not critical) to be able to view my XML files in the node format that IE supports, but unfortunately it's default XML DTD complains about my custom tag names. This isn't surprising because it doesn't know about my tag names, and which of them have optional and forbidden destructors.
I could attempt to figure out how to produce my own DTD, but I'm not sure I have the time. Added to that IE is now suggesting that I could use an XSL, to solve the problem.
Do any of te internet Gurus around here know if there is an easy way to understand W3C DTD's such that I could quickly produce my own, or alternatively how to use XSL to specify new tag names/types?
Answers on a postcard please?....... pretty please
>> Edited by dilbert on Wednesday 9th November 17:57
Obviously it has lots of benefits, the most obvious of which is that the basic syntax is alays the same, although the semantics can be custom as I need. When I wrote the parser I didn't really want to get bogged down, in the details of DTD syntax. The result is that I have a "DTD object", but it's not alot like the W3C idea of a DTD file.
In my DTD, I can specify the tag names of those tags that have optional and forbidden destructors, but that's about it.
What this means is that I have a convenient means of producing and wrking with XML/HTML to a custom and local DTD.
I'd quite like (although it's not critical) to be able to view my XML files in the node format that IE supports, but unfortunately it's default XML DTD complains about my custom tag names. This isn't surprising because it doesn't know about my tag names, and which of them have optional and forbidden destructors.
I could attempt to figure out how to produce my own DTD, but I'm not sure I have the time. Added to that IE is now suggesting that I could use an XSL, to solve the problem.
Do any of te internet Gurus around here know if there is an easy way to understand W3C DTD's such that I could quickly produce my own, or alternatively how to use XSL to specify new tag names/types?
Answers on a postcard please?....... pretty please
>> Edited by dilbert on Wednesday 9th November 17:57
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



