XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Neal  WaltersSubject: Comment in XQuery
Author: Neal Walters
Date: 01 Feb 2005 06:24 PM
Can I comment out a statement or an XML fragment in XQuery?

If I try <!-- xxx -->, in some places it gets written to my output file,
and other places it says invalid character <.

For example, in the xquery below, could I comment-out just the "order by" clause?
How about the this statement: <ordid>{$ord/ORD_ID/text()}</ordid> ?

<NealQuery>
{
for $ord in
/RedOrders/RedOrderHeader[count(RedOrderDetail//SHIP_ADDR1)>1]
order by $ord/ORD_ID
return
<order>
<ordid>{$ord/ORD_ID/text()}</ordid>
{for $detail in $ord/RedOrderDetail
return
<addr>{$detail/SHIP_ADDR1/text()}</addr>
}
</order>
}
</NealQuery>



Thanks,
Neal Walters
http://Biztalk-Training.com - Free Videos

Posttop
Ivan PedruzziSubject: Comment in XQuery
Author: Ivan Pedruzzi
Date: 01 Feb 2005 06:52 PM
Hi Neal,

XQuery comments are (: :)
In all Stylus Studio editors you can comment the current selection pressing F12 (Edit -> Toggle Comment)

Hope this helps
Ivan

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.