PHP 클래스 QueryPath\Extension\QPXSL
This extension provides the {@link QPXSL::xslt()} function, which transforms
a source XML document into another XML document according to the rules in
an XSLT document.
This QueryPath extension can be used as follows:
xslt('stylesheet.xml')->writeXML();
?>
This will transform src.xml according to the XSLT rules in
stylesheet.xml. The results are returned as a QueryPath object, which
is written to XML using {@link QueryPath::writeXML()}.
파일 보기
프로젝트 열기: microweber/microweber
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( QueryPath\Query $qp ) |
|
|
xslt ( mixed $style ) : QueryPath |
Given an XSLT stylesheet, run a transformation. |
|
메소드 상세
public __construct ( QueryPath\Query $qp ) |
$qp |
QueryPath\Query |
|
This will attempt to read the provided stylesheet and then
execute it on the current source document.
public xslt ( mixed $style ) : QueryPath |
$style |
mixed |
This takes a QueryPath object or any of the types that the
{@link qp()} function can take. |
리턴 |
QueryPath |
A QueryPath object wrapping the transformed document. Note that this is a
different document than the original. As such, it has no history.
You cannot call {@link QueryPath::end()} to undo a transformation. (However,
the original source document will remain unchanged.) |
프로퍼티 상세