From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: What is the best license to use for open source software? Date: Thu, 29 Jan 2015 10:29:49 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <8f389b7e-31e8-48ea-98c4-cd4471db9293@googlegroups.com> <1w1u3p8o0pf3u.5fidvp7gla8x$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 29 Jan 2015 10:29:49 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="aaf00f8fab8bca694b96dc09f6890afa"; logging-data="17086"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aEhbgCSmsKghvG69BGMoTnFyPkNTjGlY=" User-Agent: NewsTap/4.0.1 (iPhone/iPod Touch) Cancel-Lock: sha1:Ip4sqCs4zD8npTV2zEFMffglEaM= Xref: number.nntp.giganews.com comp.lang.ada:192092 Date: 2015-01-29T10:29:49+00:00 List-Id: "Dmitry A. Kazakov" wrote: > On Wed, 28 Jan 2015 23:03:24 -0800 (PST), Vadim Godunko wrote: > >> On Tuesday, January 27, 2015 at 11:52:28 AM UTC+3, Dmitry A. Kazakov wrote: >>> >>> One basic issue more, should the template paradigm be: >>> >>> A. Substitution-based (some escape sequences in the text); >>> B. Language-based; >>> C. Programmable (some API to manipulate the template, plus intermediate >>> embeddable code, plus GUI editor). >>> >> Matreshka includes templates engine that uses XML format for templates and >> handles substitutions and conditional processing. Generated output can be >> XML or optimized HTML (when template uses HTML namespace). See >> >> http://forge.ada-ru.org/matreshka/wiki/XML/Templates >> >> Source template not necessary should be file: it can be any stream of >> stream elements or sequence of 'markup events' - elements of internal >> representation of XML document. > > That would be A, while I prefer C. E.g. instead of XML: > > > ... > > > Ada's: > > ... & (if Condition then ... else Null_Text end if) & ... No professional designer will accept Anything like it. > I would also try to declare HTML elements as typed constants. This can be done in programs modelling HTML documents, but for working with templates, XML-defined validity and sometimes even just wellformedness turns out to be quite enough. The idea is > to ensure the resulted HTML page being correct (e.g. matched elements > ) for any set of actual parameters. One flaw of the approaches A and B > is that there is no way to do this. XML not matching elements? I must be misunderstanding something.