dtd

From twext

Jump to: navigation, search
<?xml version="1.0"?>
<!DOCTYPE twext [
    <!ELEMENT twext (para)>
    <!ELEMENT para (line)>
    <!ELEMENT line (chunk)>
    <!ELEMENT chunk (text,twxt)>
    <!ELEMENT text (#PCDATA)>
    <!ELEMENT twxt (#PCDATA)>
}>



[edit] next

  • TEXT language
  • twxt language
  • title

[edit] then

dtd means document type definition.. we wanna define a twexml markup language so it's easy to share twext docs

<- rough draft, simple start.. other elements, attributes, entities adding below..

[edit] schema

XSD

XML Schemas are the Successors of DTDs

We think that very soon XML Schemas will be used in most Web applications as a replacement for DTDs. Here are some reasons:

  • XML Schemas are extensible to future additions
  • XML Schemas are richer and more powerful than DTDs
  • XML Schemas are written in XML
  • XML Schemas support data types
  • XML Schemas support namespaces


Retrieved from "http://twext.com/dtd"
Personal tools