XML_GRDDL
[ class tree: XML_GRDDL ] [ index: XML_GRDDL ] [ all elements ]

Class: XML_GRDDL_Driver_Xsl

Source Location: /XML_GRDDL-0.2.0/XML/GRDDL/Driver/Xsl.php

Class Overview

XML_GRDDL_Driver
   |
   --XML_GRDDL_Driver_Xsl

A driver for PHP 5's XSL extension.


Author(s):

Version:

  • Release: @package_version@

Methods


Inherited Variables

Inherited Methods

Class: XML_GRDDL_Driver

XML_GRDDL_Driver::__construct()
Make a new instance of XML_GRRDL_Driver directly
XML_GRDDL_Driver::appendProfiles()
Append one or more profiles to a HTML document.
XML_GRDDL_Driver::crawl()
Fetch, inspect, parse and merge a URL.
XML_GRDDL_Driver::determineBaseURI()
Inspect a DOMDocument and kludge together a base URI.
XML_GRDDL_Driver::discoverDocumentTransformations()
Given an XPath[XPATH] root node N with root element E, if the expression
XML_GRDDL_Driver::discoverHTMLProfileTransformations()
Look for profileTransformations (via PROFILE tags).
XML_GRDDL_Driver::discoverHTMLTransformations()
Look for transformations hidden in A, LINK tag.
XML_GRDDL_Driver::discoverNamespaceTransformations()
Transformations can be associated not only with individual documents but also with whole dialects that share an XML namespace.
XML_GRDDL_Driver::discoverTransformations()
Discover transformations in the provided document by using the xpath provided.
XML_GRDDL_Driver::fetch()
Fetch a URL, specifically asking for XML or RDF where available.
XML_GRDDL_Driver::findRedirect()
If this URL has been fetched before, return its resolved location (after all redirects)
XML_GRDDL_Driver::inspect()
Inspect raw XML for transformations, according to options
XML_GRDDL_Driver::isURI()
Inspect a string to see if it is a valid URL
XML_GRDDL_Driver::knownNamespaceTransformations()
Fetch a URL, which should be a namespace document of some description.
XML_GRDDL_Driver::logRedirect()
Record a redirection for a url
XML_GRDDL_Driver::merge()
Merge two GRDDL results into one.
XML_GRDDL_Driver::prettify()
Prettify XML.
XML_GRDDL_Driver::transform()
Transform the given XML with the provided XSLT.

Class Details

[line 62]
A driver for PHP 5's XSL extension.

Requires PHP 5.2.6, XSL extension



[ Top ]


Method Detail

__construct (Constructor)   [line 75]

void __construct( [mixed[] $options = array()])

Make a new instance of XML_GRRDL_Driver_XSL directly

Overrides XML_GRDDL_Driver::__construct() (Make a new instance of XML_GRRDL_Driver directly)

Parameters:

mixed[]   $options   —  An array of driver specific options

[ Top ]

checkStylesheetOutputType   [line 170]

bool checkStylesheetOutputType( DOMDocument $stylesheet)

A driver specific method to check if a given stylesheet will output an understandable format.

This driver only understands application/rdf+xml

  • See: makechanges
  • Throws: XML_GRDDL_Exception
  • Access: protected

Parameters:

DOMDocument   $stylesheet   —  A given stylesheet to inspect

[ Top ]

handleTransformationErrorMessage   [line 211]

void handleTransformationErrorMessage( string $errno, string $errstr, string $errfile, string $errline, [string[] $errcontext = array()])

Handle generated error messages
  • Throws: XML_GRDDL_Exception
  • Access: public

Parameters:

string   $errno   —  Error number
string   $errstr   —  Error message
string   $errfile   —  Error file
string   $errline   —  Error line
string[]   $errcontext   —  Error context

[ Top ]

transform   [line 98]

string transform( string $stylesheet, string $xml)

Transform the given XML with the provided XSLT.
  • Return: Transformed document contents.
  • Access: public

Overrides XML_GRDDL_Driver::transform() (Transform the given XML with the provided XSLT.)

Parameters:

string   $stylesheet   —  URL or file location of an XSLT transformation
string   $xml   —  String of XML

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:43:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.