W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

RE: Whitespace in XQuery 1.0

From: Kevin Jones <kjones@actuate.com>
Date: Thu, 4 Sep 2003 12:05:36 -0700
Message-ID: <A1BD4B37957C934C9BCF6619615E41958FE786@exchange6.actuate.com>
To: <scott_boag@us.ibm.com>, "Kevin Jones" <kjones@actuate.com>
Cc: <public-qt-comments@w3.org>, <public-qt-comments-request@w3.org>
Scott,
 
Thanks for the clarification. The general rules that you stated below ( i.e. - "words" must be separated by requiredSkip, and punctuation can be optionalSkip) seem appropriate and work well in practice. The rules even obviate the need for explicit whitespace in productions such as:
 
<"declare"  <http://www.w3.org/TR/2003/WD-xquery-20030822/#prod-S> S "variable" "$">
 
The other option would be to add S and S?  explicitly according to the previously stated rules. It would be unambiguous but it would also be messy.
 
regards,
 
Kevin

-----Original Message-----
From: scott_boag@us.ibm.com [mailto:scott_boag@us.ibm.com]
Sent: Tuesday, September 02, 2003 3:06 PM
To: Kevin Jones
Cc: public-qt-comments@w3.org; public-qt-comments-request@w3.org
Subject: Re: Whitespace in XQuery 1.0



Hi Kevin.  Yes, there should be a third category, or maybe two more specific categories: 

1) required whitespace, i.e. one or more.  In the XML definition of the grammar this is <g:requiredSkip show="no"/> 
2) optional whitespace.  In the XML definition of the grammar this is <g:optionalSkip/>. 

I can only explain this with general rules, which is that "words" must be separated by requiredSkip, and punctuation can be optionalSkip.  I will try and make this more explicit in the next draft. 

-scott 
Received on Thursday, 4 September 2003 15:06:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:14 UTC