The sample XSL style sheets

The sample application contains the following style sheets ending in .xsl, and are located in the local directory of the installed domain.

Table 1. Style sheets in the sample application
Style sheet Purpose
allData.xsl An Identity style sheet that copies all of the data from the source to the target. It is used both for the Redaction function and for the call to the XACML XML Gateway.
apil-xacml-binding-new.xsl Uses the credential mapping information to create a SOAP request which can be processed by the DataPower® appliance Policy Decision Point (PDP). This style sheet is a modification of the tspm-xacml-binding-sample.xsl style sheet that is provided in the store directory of the DataPower appliance. The key functionality provided by this adapted script is to add an externally accessible variable that makes the subject information of the XACML request available to the redaction style sheet.
noPriceInfo.xsl This style sheet sets the price element to a value of 0.0.
rgxacml.xsl This style sheet is a customization of the tspm-retrieve-groups.xsl style sheet in the store directory of the DataPower appliance. The primary purpose of this style sheet is to provide the LDAP DN, hostname, password, port, and so on, so that the incoming user can be looked up and their group information retrieved.
soavars.xsl This style sheet is an example only style sheet that defines the LDAP information in variables used by the rgxacml.xsl style sheet. In the example the password is unencrypted, which is not a production practice.
storeCallPDP.xsl This style sheet has the code to call the XACML Gateway, handles the Permit/Deny decision, and sets the filter variable to run either allData.xsl or noPriceInfo.xsl.
storeSendToPDP.xsl This style sheet constructs a SOAP Request that is sent to the XACML Gateway. It includes the subject information obtained in the apil-xacml-binding-new.xsl style sheet, the resource information, the action information, and the environment information.

Concept Concept

Feedback

Timestamp icon Last updated: Thursday, 3 July 2014
http://publib.boulder.ibm.com/infocenter/prodconn/v1r0m0/topic/com.ibm.scenarios.soawdpwsrr.doc/topics/csoa2_sample_xsl.htm