STxT in 1 Minute
STxT: a language for building structured text documents, with namespaces and validation.
Documents with namespace
Example of a document with an Email
element from the com.example.docs
namespace
Email (com.example.docs): From: John Smith To: Mery Adams Cc: Keyla Brown Title: Project report Body Content: Hello Mery!! The book is finished!!
And the namespace definition
Namespace: com.example.docs Email: From: (1) To: (1) Cc: (?) Bcc: (?) Title: (1) Body Content: (1) TEXT
Documents without namespace
Documents without namespace must mark multiline nodes with :
before the name:
Email: From: John Smith To: Mery Adams Cc: Keyla Brown Title: Project report :Body Content: Hello Mery! The book is finished!