Stylesheet Import

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

Function

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.

Arguments

sPub

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

sArchive

The path to the archive file.

pErrfn

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”.

Examples

Command line:

tlapi ‑cIMPSTYL ‑i/tmp/ss.zip manuals/guide

Library call:

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

Scripting call:

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