XSLTProcessor::importStylesheet

(PHP 5, PHP 7)

XSLTProcessor::importStylesheetImport stylesheet

说明

public XSLTProcessor::importStylesheet ( object $stylesheet ) : bool

This method imports the stylesheet into the XSLTProcessor for transformations.

参数

stylesheet

The imported style sheet as a DOMDocument or SimpleXMLElement object.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE