At-rules allow page authors to define directives for the theme parser. They can be used for a variety of purposes. At-rules start with an at-keyword, i.e. the '@' character, followed by an identifier. MCS supports two at-rules: @namespace and @ui:dynamic-property.
At-rules allow page authors to define directives for the theme parser. They can be used for a variety of purposes. At-rules start with an at-keyword, i.e. the '@' character, followed by an identifier. MCS supports two at-rules: @namespace and @ui:dynamic-property.
The @namespace rule defines a mapping between a namespace prefix and a namespace URI, i.e. it allows page authors to associate a custom namespace with a custom prefix. The syntax is as follows:
@namespace <PREFIX> "<URI>";
For example, the following rule associates the namespace URI http://www.my.com/ with the my prefix:
@namespace my "http://www.my.com/";
The following constraints apply:
The rules must come before any other at-rules, and before any style rules. If this constraint is broken, then the rule is ignored but an error message is logged to inform the author of the issue.
If multiple rules are specified with the same prefix, the last one wins.
Neither the prefix or URI is allowed to be an empty string. If they are, then it is an error and the rule is ignored.
Custom namespaces should not be in the www.volantis.com domain.
Custom namespaces should not be part of any publicly visible and usable specification, such as, but not limited to those provided by the W3C.
The @ui:dynamic-property rule defines a custom dynamic property. Refer to the topic entitled Custom dynamic properties for further information. Please note that these rules must come after @namespace rules and before any style rules.