Previous Next Index Close


2.1.12)  P: Property

description: In some types of references, so-called 'properties' of categories are used. These can be unary or binary.

Examples of unary properties are 'green', 'very good' and '!green'. As seen, an exclamation mark can be used in front of a unary property to denote the negative.

Examples of binary properties are 'year = 1980', 'rating = 8' and 'status = dead'. These consist of a property name and a value that can be either a string or a value.

format:
"p:" <unary property> | <binary property>
( "," ( <unary property> | <binary property> ] ) )*
remark: An arbitrary amount of property attributes may be specified per category, using one or more p: attributes.

remark: A category can reference another category and at the same time carry attributes (see section 1.3):
category/ p: green, !very good
          p: year = 1980
          -> some_other_file.dii
remark: It is prohibited to use the p: attribute in the main category of a dii file. The above remark shows how to set the properties of this category via the referring category. It is prohibited for efficiency reasons, as dii files are usually spread across the web.

remark: 'Real categories' (see section 2.3.2) inherit all property attributes from their ancestor categories, up to the root category of the corresponding file.



Previous Next Index Close