Stylesheet Import

Command line:
tlapi ‑cIMPSTYL ‑isArchive] sPub
Library call:
nStatus = TLimportStylesheet (sPub, sArchive, 0L, pErrfn)
Scripting call:
nStatus = ImportStylesheet (sPub, sArchive)


Restore the stylesheet data for a publication from an archive file. The archive file must be in the format produced by the stylesheet export function.



The path to the publication, relative to the TopLeaf repository root.


The path to the archive file.


If this is not NULL, it must be the address of a function which will be called to report errors. The function must take two arguments: a char pointer containing the format string and a void pointer containing an optional argument.

For additional command line arguments see “Common Flag Arguments”.


Command line:

tlapi ‑cIMPSTYL ‑i/tmp/ manuals/guide

Library call:

status = TLimportStylesheet("manuals/guide", "/tmp/", 0L, NULL);

Scripting call:

status = topleaf.ImportStylesheet("manuals/guide", "/tlsave/");