프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$customStylesheets | array | Array of XSL stylesheets to add to the main one, grouped by priority. | |
$stylesheet | string | Path to stylesheet to use. |
메소드 | 설명 | |
---|---|---|
__construct ( string $stylesheet, array $customStylesheets = [] ) | Constructor. | |
convert ( DOMDocument $document ) : DOMDocument | Performs conversion of the given $document using XSLT stylesheet. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | DOMDocument |
protected getSortedCustomStylesheets ( ) : array | ||
리턴 | array |
protected getXSLTProcessor ( ) : XSLTProcessor | ||
리턴 | XSLTProcessor |
protected array $customStylesheets | ||
리턴 | array |