Class QPXSL

(line 41)

Description


Located in File: /src/QueryPath/Extension/QPXSL.php

Provide tools for running XSL Transformation (XSLT) on a document.

This extension provides the 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:

  1.  <?php
  2.  require 'QueryPath/QueryPath.php';
  3.  require 'QueryPath/Extension/QPXSL.php';
  4.  
  5.  qp('src.xml')->xslt('stylesheet.xml')->writeXML();
  6.  ?>
  7.  
  8.  This will transform src.xml according to the XSLT rules in
  9.  stylesheet.xml. The results are returned as a QueryPath object, which
  10.  is written to XML using <a href="../../QueryPath/QueryPath.html#methodwriteXML">QueryPath::writeXML()</a>.



Class Variables

Summary:
mixed $src

$src = NULL (line 43)

Data type : mixed

  • access: - protected

Class Constants

Summary:

Method Detail

Summary:
QPXSL __construct (QueryPath $qp)
QueryPath xslt (mixed $style)

Constructor __construct (line 45)

QPXSL __construct( QueryPath $qp)


Implementation of:
QueryPathExtension::__construct()

Parameters

Info

  • access - public

Method xslt (line 64)

QueryPath xslt( mixed $style)

Given an XSLT stylesheet, run a transformation.

This will attempt to read the provided stylesheet and then execute it on the current source document.

Parameters

  • mixed $style: This takes a QueryPath object or <em>any</em> of the types that the qp() function can take.

Info

  • return - A QueryPath object wrapping the transformed document. Not that this is a
  • access - public

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Sun, 25 Jul 2010 16:09:06 -0500 by phpDocumentor 1.4.3