xml-policies

Purpose

Indicates that policies are stored as XML.

Contained by

Attribute

Attribute Description Type Default Options Use
directory Specifies the root directory containing the policies. For portable projects, relative URLs are resolved relative to the project location, and if the attribute is not specified, then it defaults to '.', i.e. MCS assumes that assets are stored relative to the project location. Absolute file: and http: URLs are supported for both portable and dynamic projects. Please note, however, that remote portable projects cannot use local files. xs:string     optional 

Example

<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://www.volantis.com/xmlns/mcs/project"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  name="WelcomeProject">
  <xml-policies directory="WebContent/mcs-policies/"/>
  <assets base-url="."/>
  <policy-cache-partition size="100">
    <constraints>
      <cache allow="false" default="false"/>
    </constraints>
  </policy-cache-partition>
</project>

Related topics