Results 1 to 3 of 3

Thread: Create Your Own Mark-Up Language

  1. #1
    Senior Member
    Join Date
    Jan 2004
    Posts
    199

    Create Your Own Mark-Up Language

    It's common knowledge that html/xhtml can be used to mark-up webpages, but did you know you can make your own webpage mark-up language using XML. First you'd need to create the rules for your language with a DTD (more info here ). Next you'd need to mark-up a XML document following the rules you had laid down in your DTD (more info here). Finally you could apply style/presentation to your XML webpage by linking in a CSS stylesheet (more info here).

    This means that the following really could be valid website code:-

    <peopleihate>
    <person>Zoe</person>
    <person>Kenny</person>
    <person>Cherry</person>
    </peopleihate>
    -

  2. #2
    Senior Member
    Join Date
    Jun 2003
    Posts
    772
    I was told the DTD principle is obsolete and that something else is now being used instead.
    I have not done anything with xml since it grow out of development/experimental stage though.
    The above sentences are produced by the propaganda and indoctrination of people manipulating my mind since 1987, hence, I cannot be held responsible for this post\'s content - me

    www.elhalf.com

  3. #3
    Senior Member
    Join Date
    Jan 2004
    Posts
    199
    That is sort of true, although i feel the word "obsolete" would be a little too strong. The fact is that many now use something called a schema (more info here) to define their mark-up languages. A schema is basically an XML document used to define the rules for another XML document. This brings many advantages over a standard DTD such as allowing data types to be defined, letting a more well known and understood language (i.e. XML) define the rules and making the rules extensible. You maybe thinking at at the moment "but if an XML document (schema) is used to define the rules for another XML document, what defines the rules for the XML ruleset document?" The answer is that a DTD is used to define these rules.

    So in summary XML schema's are being used to define XML mark-up rules, but the rules for the document of rules is written using a DTD, hense why DTD are still needed.
    -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •