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
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
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
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 {
4 matches
Mail list logo