[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

comments

G. Ken Holman gkholman at CraneSoftwrights.com
Tue Jan 5 11:45:29 PST 2010


  comments
At 2010-01-05 16:35 +0000, Andrew Welch wrote:
>This xquery:
>
><body>
>   (: comment one :)
>   <p>
>   {
>     (: comment two :)
>     1 to 10
>   }
>   </p>
></body>
>
>produces this result:
>
><body>
>   (: comment one :)
>   <p>1 2 3 4 5 6 7 8 9 10</p>
></body>
>
>The fact that the first comment appears in the output seems odd to
>me... is that meant to happen, and if so what is the correct way to
>put a comment there?

I actually bring this up explicitly in my class:

   {() (: comment one :)}

The comment has to be in an expression evaluation, and the expression 
cannot be the empty string, so when I want to do what you need I use 
the empty sequence expression.

I hope this helps.

. . . . . . . . . . Ken


--
UBL and Code List training:      Copenhagen, Denmark 2010-02-08/10
XSLT/XQuery/XPath training after http://XMLPrague.cz 2010-03-15/19
XSLT/XQuery/XPath training:   San Carlos, California 2010-04-26/30
Vote for your XML training:   http://www.CraneSoftwrights.com/q/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:http://x-query.com/mailman/listinfo/talk
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/q/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.