XACML file generation and naming

Each policyset and policy that appears directly under a namespace is translated to a separate XACML file. If the policyset or policy is in-lined inside a policyset, a new file is not generated.

If the policyset or policy has an explicit URI specified, then PolicySetId or PolicyId is assigned the URI value. Otherwise, the fully qualified name of the PolicySet or Policy is assigned as PolicySetId and PolicyId, respectively.

namespace A {
policySet = "urn:example:com:policyset1" {
...
}
B {
policy p {
...
}
}
}

For the above sample code, two files (A.policySet.xml and A.B.p.xml) are generated and PolicySetId is assigned "urn:example:com:policyset1" and PolicyId is assigned "http://axiomatics.com/alfa/identifier/A.B.p".

Rules are always in-lined inside the XACML file, though the rules are allowed to be defined as separate elements in ALFA. A Rule cannot have an URI. The RuleId is assigned with the fully qualified name of the Rule.

Axiomatics
The Visual Studio Code extension for ALFA was developed by Axiomatics.
FOLLOW US