35.8 Placing CSS or XSL files for assembly
For HTML output types, when you specify WrapAndShip=Yes and designate a WrapPath directory, Mif2Go automatically copies CSS or XSL files from the project directory to the directory designated by [CSS]CssPath. Mif2Go can also automatically copy CSS or XSL files from another directory you specify.
To have Mif2Go copy CSS or XSL files:
; CopyCssFrom = path to directory containing the .css files,
; CssCopyFiles = list of files to copy from CopyCssFrom and output
; directories to the [CSS]CssPath (which defaults to the WrapPath)
CopyCssFrom and CssCopyFiles take effect when WrapAndShip=Yes, CompileHelp=Yes, or FTSCommand=path\to\indexer (see §35.10 Gathering and processing Help-system files).
When you specify a value for CopyCssFrom, *.css and *.xsl files are copied first from the project directory (unless it is the same as the destination directory), then from the directory designated by CopyCssFrom, to one of the following destinations:
• the directory designated by [CSS]CssPath, if any (see §22.4.3 Designating and locating a CSS file); otherwise,
• the directory designated by WrapPath (see §35.6 Assembling files for distribution) or, for JavaHelp and Oracle Help, the .\html subdirectory.
If you specify a relative path for CopyCssFrom, that path is relative to the project directory.
You can use CssCopyFiles to list CSS or XSL files to be copied; the default files are *.css and *.xsl. Files assigned to CssCopyFiles are always copied first from the project directory to the directory designated by [CSS]CssPath, then from the CopyCssFrom directory (if any). If CssCopyFiles is not present, or is set to nothing, all *.css and *.xsl files are copied from the project directory and then from the CopyCssFrom directory (if any).
The file specifications you assign to CssCopyFiles must be separated by spaces, and no spaces are allowed within a file specification. You can use wildcards in file specifications, and include absolute or relative paths to indicate where files should be copied from. If you do not specify a path, the default is first from the project directory, then from the CopyCssFrom directory. If you specify a relative path, the path is relative to the project directory.
For example, to have Mif2Go copy CSS files from directory MyCSS, parallel to the project directory, to directory Styles, a subdirectory of the WrapPath directory:
; WrapPath is relative to the project directory:
; CopyCssFrom is relative to the project directory:
; CssPath is relative to the WrapPath directory:
> 35 Producing deliverable results > 35.8 Placing CSS or XSL files for assembly