W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2010

[Bug 10175] New: Using multiple default namespaces

From: <bugzilla@jessica.w3.org>
Date: Thu, 15 Jul 2010 15:37:48 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-10175-523@http.www.w3.org/Bugs/Public/>

           Summary: Using multiple default namespaces
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: XSLT 2.1
        AssignedTo: mike@saxonica.com
        ReportedBy: john.snelson@marklogic.com
         QAContact: public-qt-comments@w3.org

There are often a number of function namespaces that a stylesheet will use with
frequency. All but one of these namespaces currently need qualifying when used,
since there is only one default function namespace.

In other languages like Java, importing a namespace will bring the names from
that namespace into the current scope. This allows them to be used without
qualifying them with the namespace.

I propose that we add a new attribute (maybe "using", or
"using-function-namespaces"), which lists a set of namespaces, NS. When
referencing a function with a QName L that doesn't have a prefix, the
namespaces in NS are tried in turn looking for a function with a localname of
L. If two or more such functions exist, an error is raised. To avoid the error
the user should qualify the function reference with a prefix.

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, 15 July 2010 15:37:50 UTC

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