Property | Type | Description | |
---|---|---|---|
$customStylesheets | array | Array of XSL stylesheets to add to the main one, grouped by priority. | |
$stylesheet | string | Path to stylesheet to use. |
Method | Description | |
---|---|---|
__construct ( string $stylesheet, array $customStylesheets = [] ) | Constructor. | |
convert ( DOMDocument $document ) : DOMDocument | Performs conversion of the given $document using XSLT stylesheet. |
Method | Description | |
---|---|---|
getSortedCustomStylesheets ( ) : array | Returns custom stylesheets to load, sorted. | |
getXSLTProcessor ( ) : XSLTProcessor | Returns the XSLTProcessor to use to transform internal XML to HTML5. |
public __construct ( string $stylesheet, array $customStylesheets = [] ) | ||
$stylesheet | string | Stylesheet to use for conversion |
$customStylesheets | array | Array of XSL stylesheets. Each entry consists in a hash having "path" and "priority" keys. |
public convert ( DOMDocument $document ) : DOMDocument | ||
$document | DOMDocument | |
return | DOMDocument |
protected getSortedCustomStylesheets ( ) : array | ||
return | array |
protected getXSLTProcessor ( ) : XSLTProcessor | ||
return | XSLTProcessor |
protected array $customStylesheets | ||
return | array |
protected string $stylesheet | ||
return | string |