[Bug 10875] New: [XQuery11] %private annotation is ignored on variable declarations.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10875

           Summary: [XQuery11] %private annotation is ignored on variable
                    declarations.
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 1.1
        AssignedTo: jonathan.robie@redhat.com
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org
             Group: XSLXQuery_WG


A module import is defined as so:

[Definition: A module import imports the variable declarations and public
function declarations from one or more library modules into the function
signatures and in-scope variables of the importing module.]

where a public function is one without a %private annotation (see bug 10874).

Since a user can place a %private annotation on a variable it would make sense
to "do the right thing":

Define what is meant by a private variable declaration (one with a %private
annotation)  and a public variable declaration (one  without a %private
annotation), then change the above definition to state that it only imports
public variable declarations.

Alternatively it might be easier to drop the definitions of public/private
variable/function declarations, and change the above text to read

[Definition: A module import imports all the variable declarations and function
declarations that do not have a %private annotation from one or more library
modules into the function signatures and in-scope variables of the importing
module.]

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 30 September 2010 16:41:05 UTC