You can mark up deliverables so that they contain placeholders for target variables in specific places, replacing (for example)
<WebApplication logDir="C:\Program Files\USoft\logs">
by:
<WebApplication logDir="${LOG_DIR}">
How do you get mark-up in deliverables? This depends on the type of deliverable and on the place where you want to insert the variable reference:
Method 1 - Manual edit
When writing upgrade scripts, something you do in Delivery Manager itself, you can type placeholders such as ${LOG_DIR} directly into the SQL code.
Method 2 - "Mark up XML attribute" action
You can call the "Mark up XML attribute" action and let Delivery Manager write a variable placeholder into an XML attribute for you. This option is open if you want a variable placeholder as an XML attribute. It applies chiefly to the marking of XML data files as produced by Delivery Manager or by USoft's standard XML.EXPORT.
Method 3 - "Mark up text file" action
You can call the "Mark up text file" action and let Delivery Manager do a string replacement into a text file, where the replacement string contains the variable placeholder. This option is open if you want a variable placeholder in a file other than an XML data file, for example, the "application.html" file produced by Web Designer.
Method 4 - Custom XSL
You can gain full control over the conditions under which you want to place a variable placeholder in target XML. This option requires that you write snippets of XSLT code. When releasing XML data files with metadata, authorisation data or application data, you can add XSL that mixes variable placeholders into the XML. USoft Delivery Manager helps you do that by letting you load the "mark-up-xml-custom" XSL template as a starting point.
In general, XSL transformations can be used to perform configurations on XML deliverables that go far beyond parameter substitution. Delivery Manager provides samples of this use of XSLT in the area of server configuration. This XSLT shows how you can, for example, build (for each target machine) a list of deployable Server Properties that come partly from delivery and partly from the registry.
|