4.4.4 Conditional namespaces
As of Daisy 2.3 it is possible for a repository to manage multiple namespaces and to configure conditional namespaces. In the configuration the administrator can set a condition for a namespace. A condition is an expression that is found in the where part of a Daisy query. It speaks for itself that the choice of namespace is only done on document creation and this also means that expressions using document id or namespace will not work since there is none.
Configuring the use of conditional namespaces is done in the myconfig.xml which is found under $DAISY_DATA/conf. It is simply done by adding another namespace element in the configuration of the target with path 'repository-manager'. Here is an example of what it might look like.
<target path="/daisy/repository/repository-manager"> <configuration> <namespace>DSY</namespace> <!-- Default namespace --> <namespace test="documentType='SimpleDocument'">SD</namespace> <!-- Conditional namespace --> </configuration> </target>