Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u51

  

Valid HTML 4.01!

 

Made with Mif2Go

33 Producing deliverable results > 33.6 Placing CSS or XSL files for assembly


33.6 Placing CSS or XSL files for assembly

For HTML output types, when you specify WrapAndShip=Yes and designate a WrapPath folder, Mif2Go automatically copies CSS or XSL files from the output folder to the folder designated by [CSS]CssPath. Mif2Go can also automatically copy CSS or XSL files from another folder you specify.

To have Mif2Go copy CSS or XSL files:

[Automation]

WrapAndShip=Yes

; CopyCssFrom = path to directory containing the .css files,

;  relative OK

CopyCssFrom=..\css

; CssCopyFiles = list of files to copy from CopyCssFrom and output

; directories to the [CSS]CssPath (which defaults to the WrapPath)

CssCopyFiles=*.css *.xsl

CopyCssFrom and CssCopyFiles take effect when WrapAndShip=Yes, CompileHelp=Yes, or FTSCommand=path\to\indexer (see §33.8 Gathering and compiling Help-system files).

Say where to get CSS files

When you specify a value for CopyCssFrom, *.css and *.xsl files are copied first from the output folder (unless it is the same as the destination folder), then from the folder designated by CopyCssFrom, to one of the following destinations:

the folder designated by [CSS]CssPath, if any (see §21.4.3 Designating and locating a CSS file); otherwise,

the folder designated by WrapPath (see §33.4 Assembling files for distribution) or, for JavaHelp and Oracle Help, the .\html subfolder.

If you specify a relative path for CopyCssFrom, that path is relative to the output folder.

List CSS files to be copied

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 output folder to the folder designated by [CSS]CssPath, then from the CopyCssFrom folder (if any). If CssCopyFiles is not present, or is set to nothing, all *.css and *.xsl files are copied from the output folder and then from the CopyCssFrom folder (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 output folder, then from the CopyCssFrom folder. If you specify a relative path, the path is relative to the output folder.

For example, to have Mif2Go copy CSS files from folder MyCSS, parallel to the output folder, to folder Styles, a subfolder of the WrapPath folder:

[Automation]

WrapAndShip=Yes

; WrapPath is relative to the output folder:

WrapPath=.\Final

; CopyCssFrom is relative to the output folder:

CopyCssFrom=..\MyCSS

[CSS]

; CssPath is relative to the WrapPath folder:

CssPath=./Styles



33 Producing deliverable results > 33.6 Placing CSS or XSL files for assembly