getStyleSheetParams: Get the XSL parameters for the target XSL stylesheet

View source: R/dynamic.R

getStyleSheetParamsR Documentation

Get the XSL parameters for the target XSL stylesheet

Description

This function fetches the default set of parameters that are passed to XSL for the given target format, i.e. HTML, FO, LaTeX. This is called by dynDoc and similar functions to retrieve the default parameters in an easy fashion. Eventually, these will mirror those parameters in the make files.

Usage

getStyleSheetParams(target, ...)

Arguments

target

a character string specifying the target format, e.g. "fo", "html", "latex", ...

...

additional parameters that are to be merged with, or override, the defaults

Value

A named list which can be passed to xslApplyStyleSheet.

Note

We should make this a generic function and pass it an object of the format target, e.g. HTMLTarget, FOTarget. Then we could override this function by defining methods for these target types.

Author(s)

Duncan Temple Lang

See Also

dynDoc xml2HTML xml2PDF

Examples

getStyleSheetParams("fo")
getStyleSheetParams("HTML")
getStyleSheetParams("latex")

getStyleSheetParams("HTML", html.stylesheet = "foo.css")
getStyleSheetParams("fo", start.indent = "'10'")

duncantl/XDynDocs documentation built on Jan. 4, 2024, 5:20 p.m.