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 you use the xsl:comment instruction to construct a comment
node.



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 comments  :)

XQuery: { collection()[1]//comment() }  { comment { 
" last comment " } }  (: XQuery Comment :)

Produced output:


   
   
   
   
   
   



"comment()"   is the XPath syntax to match a comment node, not a function that 
creates comments.

— Steve M.




On Aug 7, 2019, at 1:03 PM, Martin Honnen  wrote:

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 { expression }

see https://www.w3.org/TR/xquery-31/#doc-xquery31-CompCommentConstructor

So
  comment { $r }
seems to be what you want to do.




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 comment node, not a function that 
creates comments. 

— Steve M. 



> On Aug 7, 2019, at 1:03 PM, Martin Honnen  wrote:
> 
> 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 { expression }
> 
> see https://www.w3.org/TR/xquery-31/#doc-xquery31-CompCommentConstructor
> 
> So
>  comment { $r }
> seems to be what you want to do.



smime.p7s
Description: S/MIME cryptographic signature


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 { expression }

see https://www.w3.org/TR/xquery-31/#doc-xquery31-CompCommentConstructor

So
  comment { $r }
seems to be what you want to do.


[basex-talk] comment()

2019-08-07 Thread Marc

Hi,
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.


for example :

{comment("test"),
  let $r := random:integer(100) + 1
for $j in (/*)[$r]
return (
  $r,$j)
}


or (who is more what I want to do)


{
  let $r := random:integer(100) + 1
for $j in (/*)[$r]
return (comment("$r"),$j)
}


I don't find any example on how to use the comment function.
Anyone have example about that use?

Thanks

Marc


[basex-talk] Comment filtrer le goudron de vos cigarettes ?

2013-06-28 Thread Filtre AG

Petit, Léger, Lavable et Conserve le GOUDRON

 
  Si vous faites partie des fumeurs qui aimeraient diminuer les effets néfastes 
de la cigarette, ce mail est fait pour vous. 
  Le Filtre AG est un porte-cigarette santé. Il permet de filtrer une très 
grande partie des goudrons qui sont présents dans vos cigarettes. Son 
utilisation est d'une simplicité déconcertante, il suffit simplement de fixer 
le filtre au bout de sa cigarette et de fumer. Dès la première bouffée, vous 
verrez apparaître le goudron dans le filtre, choc visuel assuré.
  Le Filtre AG est réutilisable à l'infini, il suffit de le nettoyer avec un 
mouchoir et vous pourrez le réutiliser et ça indéfiniment.
  Son prix dérisoire, vous permettra de préserver à minima vos poumons, votre 
gorge et votre dentition. Fini les odeurs sur les mains, fini les dents jaunes.

  Le Filtre AG a été testé au laboratoire national d'essai français. Soyez en 
sûr, le Filtre AG vous permettra de diminuer fortement les goudrons présents 
dans vos cigarettes tout en gardant la saveur originelle de vos cigarettes.
Accéder à plus d'informations 

 
Le code promo filtronslegoudron vous permettra de bénéficier dès à présent de 
40%* de réduction. 
*valable jusqu'au 15/07/2013
Enfin la solution pour limiter les effets néfastes de la cigarette
Vidéo de démonstration
*Filtre AG est une marque déposée auprès de l'institut nationale de la 
propriété industrielle.
 
Pour ne plus recevoir de mail de notre part, veuillez cliquer STOPMAIL

___
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk