DLM Quick Start Files

Submitted by: Paul Nagai Last Updated: 2010-08-04

These are "live" files from one of my dlm deployments.

They work for me, but may or may not for you.

Assume other standard disclaimer text here.

Most of these files are GENTLE in that while they may not work in your environment initially or ever, they will not probably cause any harm.

BE WARNED: Two scripts are destructive in nature. One strips all ID attributes from the current document. One moves (I think) elements out of elements. Please make copies of any files and work with test data and examine the results before using with live files in production.

You will have to make some changes in order to match your dtd and target elements, your server names, your doctype name. Probably more.

Read the files. Search for "your" which I have used in locations where I am *sure* you will need to provide your own install / configuration information.

ALL of the following files should be placed in both Editor and PE custom / sub- folders with the exception of the very one that replaces, on PE, the one deployed for Editor.

Tar file: [[Media:dlm_quick_start_files.tar]]

...\editor_custom\doctypes\yourdoctype dtd_fragment.dtd Required. Contains one attribute and several element definitions you will need to add to your dtd. More notes in file. fosi_fragment_formatting_links.fos Required. Contains several fosi e-i-cs for formatting the XSL transformed output returned from the dlm portion of the composition or content pipeline. fosi_fragment_setting_ID.fos Required. Contains one attribute test that must be appended to the title context of each target element. More notes inside. yourdoctype.dcf Required. Contains references to your_link element which allows you, with tricks, to manage non-dlm links while using dlm. Without tricks, dlm wants to manage them all. Contains reference to dlm link element. Contains reference to dlm configuration file. yourdoctype.dlmcf Required. This is the main DLM Configuration File. It 		describes all of your target elements, how information about them should be foldered in 		dlmexplorer, what metadata constructs to build in dlm, and the different link types. Finally, it contains a reference to the XSL stylesheet that will be used to transform the output returned from the dlm portion of the composition or content pipeline. z_link_resolution.xsl Required. Transforms the output returned from the dlm portion of the composition or content pipeline. Its output is passed to the fosi where final output formatting is performed. If you produce output other than that produced by fosi, those stytlesheets also receive output "last" after this one processes. Notes: 1) I substituted asdocbook doctype declaration 		for one of ours. I don't think this matters since 		the one of ours referenced is not available to the 		authors in the environment I took this code from. If 		this seems suspect in any errors, try replacing 		the doctype declaration and dtd referenced 		herein with your own doctype and dtd. 		2) Using reveal_markup.xsl or reveal_markup_xml.xsl (usually provided with a pe install) to output a 		pdf via fo or xml via plain xsl processing, can be 		very helpful in troubleshooting the output from the ...\editor_custom\editinit dlm_establish_session.acl Optional. Establishes a DLM session. More info in file. set_dlmconfirmregistration.acl Optional. Sets dlmconfirmregistration = on. set_dlmshowregistrationreport.acl Optional. Sets dlmshowregistrationreport = on. start_dlm_log.acl Optional. Starts dlm log and sets logging level. Writes to root of C drive. ...\editor_custom\lib global.dlmcf Required. Provides dlm database name and dlm service location, its http://blahblahblah address. THIS ONLY GOES ON EDITOR CUSTOM. THERE IS A PE VERSION DESCRIBED BELOW. ...\editor_custom\scripts clear_dlm_ids.acl.txt Optional. A DESTRUCTIVE script to remove all IDs found in the current document. Might be useful if 		your content pre-DLM is already using ID and you want to remove all occurrences of the attribute. Rename to remove ".txt" extension appended to provide some protection against accidentally executing this code. eval_titles.acl.txt Optional. A DESTRUCTIVE script that I think moves elements out of elements. Use with care, it's been a while since I used / read this one. Maybe it's 		a useful utility as-is or a starter for one you need. Rename to remove ".txt" extension appended to provide some protection against accidentally executing this code. PE CUSTOM ...\pe_custom\lib global.dlmcf Required. Provides dlm database name and dlm service location, its http://blahblahblah address. THIS ONLY GOES ON PE CUSTOM. THERE IS AN EDITOR VERSION DESCRIBED ABOVE.