Parameters View
Parameters are key to CAM. They are how external context information is passed into the CAM processor.
There are two basic types supported by JCAM:
- local
- derives its value from within the XML file being validated. It will always have a valid XPATH associated with it.
- global
- this is for external context. A value must always be supplied when running the CAM processor.
Both types may have default values, and lists of allowed values.

This view has 5 columns:
- Name
for the parameter. To use it in the template prefix with $
. For example with name as 'location
' you would use '$location
'.
- Default
value for the parameter, if set.
- Allowed Values
is a list separated by '|
'. If set the parameters must only have these values.
- XPath
this is used by local parameters to point to the location where the parameter will derive its value at run time. If the XPath points to more than one node the value of the first is used, in this case it might be worth using 'scoped' context to enable the multiple values to be used during processing.
- Usage
this can be either local or global.
This view has 4 context menu options:
- Add Parameter
create a new dummy parameter that needs its value changed.
- Delete Parameter
remove the currently selected parameters.
- Set Usage to Local
sets the Usage column to 'local' for the currently selected parameter.
- Set Usage to Global
sets the Usage column to 'global' for the currently selected parameter.