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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: What is the best license to use for open source software? Date: Thu, 29 Jan 2015 13:23:17 +0100 Organization: A noiseless patient Spider Message-ID: References: <616ae348-41f6-446f-9c4b-0da8e398e75b@googlegroups.com> <1391828381444007928.494546nonlegitur-futureapps.invalid@reader80.eternal-september.org> <1bmcls0l0g4ka$.1u5nfke8o2aod.dlg@40tude.net> <8f389b7e-31e8-48ea-98c4-cd4471db9293@googlegroups.com> <1w1u3p8o0pf3u.5fidvp7gla8x$.dlg@40tude.net> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 29 Jan 2015 12:22:42 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="12922"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OFx1wfURsv0/LakdgmrSO9TQe9H0M7lY=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <1w1u3p8o0pf3u.5fidvp7gla8x$.dlg@40tude.net> Cancel-Lock: sha1:oxgulgf4wr17ukUIyPoHVEJ8pys= Xref: news.eternal-september.org comp.lang.ada:24787 Date: 2015-01-29T13:23:17+01:00 List-Id: On 29.01.15 09:50, 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, Microsoft Word files are A (XML), too. The tool does not determine the representation. > while I prefer C. E.g. instead of XML: > > > ... > The template language need not be XML even when the template documents are XML. Also, using XML Processing Instructions (PIs), you could be specifically using XML and avoid another XML namespace plus more node names:
...
boolean_expression can very well use Ada syntax, as it is the job of the XML processor to take care of PIs! We sometimes use a template language that lets us choose indicators flexibly, which can mean HTML comments, and in no way do we need to use namespaces, to get ... where we chose "" as the indicators. The templates stay valid XML (XHTML, i.e.) in those cases. In other cases, we switch indicators so that we can put things in attribute values. Design tools might require that JSP syntax or ASP syntax be understood.