Re: Proposed new requirement: Ability to produce textual output

Robert Barta <[email protected]>
Newsgroups gmane.text.xml.xtm.tmql
Message-ID <[email protected]>
On Thu, Jun 19, 2003 at 12:19:51PM +0200, Lars Marius Garshol wrote:
> I'm wondering whether we should add a requirement like the following:
> 
>   TMQL shall be able to produce textual output from queries, including
>   special features to support the production of XML and HTML output.
> 
> Opinions on this?

Well, yes. :-)

I think this is VERY useful, because it reduces the overlap of

  - querying ... getting a result in some form, and
  - templating ... putting the content into a HTML page or whatever

We only would need XML, I reckon, so that the output can be
posttransformed.

It would also be possible to create arbitrary text, but then I would
expect some syntactic problems in TMQL. XML is friendly in this
regard, so is of course XTM.

\rho

PS: AsTMa? has this feature already:

<docs>
  {
   forall [ $d (document)
            bn : $bn ] in "tm:literature"
   return
      <doc id="{$id}">{$bn}</doc>
   }
</docs>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.