Re: [basex-talk] comment()

2019-08-08 Thread Martin Honnen
Am 08.08.2019 um 08:46 schrieb Marc: I use very often the comment() with XSLT, and I confuse it with the "comment" literal of XQuery ! But even in XSLT the use of "comment()" is only for selecting/matching comment nodes (or for declaring a type), not for creating/constructing them. In XSLT

Re: [basex-talk] comment()

2019-08-08 Thread Marc
Thanks you very much. I use very often the comment() with XSLT, and I confuse it with the "comment" literal of XQuery ! Marc Le 07/08/2019 à 19:22, Majewski, Steven Dennis (sdm7g) a écrit : Also literal work just like other literal XML, as there is a different syntax for (: XQuery

Re: [basex-talk] comment()

2019-08-07 Thread Majewski, Steven Dennis (sdm7g)
Also literal work just like other literal XML, as there is a different syntax for (: XQuery comments :) XQuery: { collection()[1]//comment() } { comment { " last comment " } } (: XQuery Comment :) Produced output: "comment()" is the XPath syntax to match a

Re: [basex-talk] comment()

2019-08-07 Thread Martin Honnen
On 07.08.2019 18:52, Marc wrote: I want to write a comment in the xml I produce with my XQuery. I try to use the comment() function, but each time I want to put something inside the () i have a syntax error. If you want to create a comment node computed by an expression use comment {