W3C home > Mailing lists > Public > public-forms@w3.org > June 2012

function, variable and reserved namespaces

From: Nick Van den Bleeken <Nick.Van.den.Bleeken@inventivegroup.com>
Date: Thu, 21 Jun 2012 12:23:27 +0000
To: Public Forms <public-forms@w3.org>
Message-ID: <D0974B30-7E05-4E4E-8506-672E86601BC4@inventivegroup.com>
All,

Is was about to add text to the spec that stated that it is an error to add functions to the XForms or XPath function namespace. While having a look at the XSLT spec I noticed that you aren't allowed to define custom functions in one of the reserved namespaces, nor are you allowed to define variables in those namespaces. It kind of makes sense to me not to be able to add variables to the XForms namespace, maybe we want to add variables in the XForms namespace in the future, and then it is good practice to prevent form authors to add variables to our namespace.

I also noticed that in xslt 'The default namespace of the defining element (see Section 6.2 Element Nodes<http://www.w3.org/TR/xpath-datamodel/#ElementNode>DM) is not used for unprefixed names.' I think that we should also do this, otherwise if people change the default namespace to our xforms namespace the variables will be in XForms namespace (which I think we shouldn't allow).

I also think that we should allow other modules to add restrictions to which namespaces aren't allowed for adding functions and variables into. For example the XPath expression module will prevent adding variables and custom functions to the XPath function namespace.

Kind regards,

Nick Van den Bleeken
R&D Manager

Phone: +32 3 425 41 02
Office fax: +32 3 821 01 71
nick.van.den.bleeken@inventivegroup.com<mailto:nick.van.den.bleeken@inventivegroup.com>
www.inventivedesigners.com


[cid:image001.png@01CBF2F8.1DA19110][cid:image002.png@01CBF2F8.1DA19110][cid:image003.png@01CBF2F8.1DA19110]


________________________________

Inventive Designers' Email Disclaimer:
http://www.inventivedesigners.com/email-disclaimer



image001.png
(image/png attachment: image001.png)

image002.png
(image/png attachment: image002.png)

image003.png
(image/png attachment: image003.png)

Received on Thursday, 21 June 2012 12:23:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:57 UTC