369: add fixed-prefixes attribute in XSLT - #470
Conversation
|
I'm not a fan, really, but I won't stand in the way. Do I understand correctly that if I say |
If it has its own It's not an intended feature that you can load the same module and bind it to different namespaces on different occasions, but I guess people might find some smart ways to exploit that. Which might or might not be desirable. If the module is used at the top level, you'll get a static error saying "local" is undefined. |
|
I have submitted a substantial revision of the proposal to take comments into account (particularly from @dnovatchev). Namespaces are no longer automatically inherited from including/importing modules, though this can be achieved if required by using shadow attributes and static variables. Namespaces may now be adopted from an external XML document, which can be any document at all, including but not confined to a stylesheet module or a specimen source document. |
6b5bace to
6abd82e
Compare
| <p>For example, a namespace declaration of the form | ||
| <code>xmlns:math="http://www.w3.org/2005/xpath-functions/math</code> establishes a binding | ||
| of the prefix <code>math</code> to the namespace URI <code>http://www.w3.org/2005/xpath-functions/math</code>, | ||
| thereby enabling functions in that namespaces to be invoked using an expression such as |
There was a problem hiding this comment.
namespaces - - > namespace
| <error spec="XT" type="static" class="SE" code="0122"> | ||
| <p>It is a <termref def="dt-static-error">static error</termref> if a token | ||
| appearing in the <code>fixed-namespaces</code> attribute takes a form | ||
| that is not one of the permitted forms, or if it interpreted as a URI |
6abd82e to
01452ae
Compare
|
The CG agreed to merge this PR at meeting 056. |
A solution to some of the problems identified in issue #369. This proposal affects XSLT only.