[sc34wg3] CTM block syntax vs. TMQL embedded expressions
Robert Barta
rho at devc.at
Tue Jan 29 03:26:20 EST 2008
On Tue, Jan 29, 2008 at 09:21:37AM +0900, Jaeho Lee wrote:
> IMHO, I think the priority should be given to CTM when it comes to decide
> who takes the precious "{ }" symbols.
Why? There was good reason for the {} in TMQL, with all the heritage
coming from XQuery.
And {} is perfect (well, familar) for deep nesting. Where is deep
nesting in CTM?
\rho
> -----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
>
> _______________________________________________
> sc34wg3 mailing list
> sc34wg3 at isotopicmaps.org
> http://www.isotopicmaps.org/mailman/listinfo/sc34wg3
>
--
And then he said: "You should read my blog." http://kill.devc.at/
More information about the sc34wg3
mailing list