[sc34wg3] CTM block syntax vs. TMQL embedded expressions

Jaeho Lee jaeho at uos.ac.kr
Mon Jan 28 19:21:37 EST 2008


Hello again,
IMHO, I think the priority should be given to CTM when it comes to decide
who takes the precious "{ }" symbols.
I think I can devise nice alternative ways to express expression in TMQL
once "{ }" are assigned to CTM.

---
 Jaeho Lee
 The University of Seoul

-----Original Message-----
From: sc34wg3-bounces at isotopicmaps.org
[mailto:sc34wg3-bounces at isotopicmaps.org] On Behalf Of Lars Heuer
Sent: Tuesday, January 29, 2008 2:22 AM
To: Discussion of ISO/IEC 13250 Topic Maps
Subject: [sc34wg3] CTM block syntax vs. TMQL embedded expressions

Hi all,

I wonder how nicely the proposed {}-syntax plays with TMQL-expressions
within CTM.

Here an example from the tutorial I found at
<http://kill.devc.at/system/files/language.html#id2482915>

       for $p in // person
       where
          has-composed (composer: $p, opus: $_)
       return """
              { $p }   # this copies the whole topic verbatim

              {fn:id ($p)} isa composer
       """


If I try to translate it into the new and shiny block syntax I get:


       for $p in // person
       where
          has-composed (composer: $p, opus: $_)
       return """
              { $p }   # this copies the whole topic verbatim

              {fn:id($p)} \{ isa composer; \}
       """

I think, you have to escape the CTM "{" "}" everywhere otherwise the
TMQL-processor interprets it as embedded expression. Note, that this
is a very simple example.

Maybe the TMQL-editors can verify it.

Best regards,
Lars
--
http://www.semagia.com

_______________________________________________
sc34wg3 mailing list
sc34wg3 at isotopicmaps.org
http://www.isotopicmaps.org/mailman/listinfo/sc34wg3



More information about the sc34wg3 mailing list