Class: xsl_transform

Quellcode Position: Program_Root/sys_xsl.php

Class xsl_transform

Class Overview
Direct Derivates
Abgeleitete Class Description
xsl_layout XSL Layout-object with XML data buffer

Properties Summary
array   $extensions   Available XSLT-extensions
array   $lasterror   Letzte Fehlermeldung von Sablotron
string   $params   Parameter
array   $preferred   Preferred XSLT-Extension
string   $result   output string
string   $xmldata   XML data
string   $xmlfile   XML-data
string   $xsldata   XSL stylesheet data
string   $xslfile   XSL-stylesheet-file

Method Summary
xsl_transform   xsl_transform()   Constructor
boolean   check_extensions()   Check extension
string   entity2xml()   Make string XML-compatible
string   getFormattedLines()   Output formatting of sourcecode
string   getLastError()   Sow last error
string   getLastErrorHTML()   HTML error message
void   handler_xslt_error()   Error handler for new extensions
mixed   load_file()   load data out of file
void   parse()   Parse data
mixed   parse_php4domxslt()   Parse XSLT with php 4 ext/dom_xml (libxslt)
mixed   parse_php4xslt()   Parse XSLT with php 4 ext/xslt (Sablotron)
mixed   parse_php5domxsl()   Parse XSLT with php 5 ext/xsl (libxslt)
void   setError()   Error function for old Extension Transfor error sting in hash
void   setParam()   Set parameters and escape them if necessary
void   showDebug()   Output debug messages

Properties
array   $extensions = array() [Zeile 61]

Available XSLT-extensions


array   $lasterror [Zeile 55]

Letzte Fehlermeldung von Sablotron


string   $params [Zeile 43]

Parameter


array   $preferred = domxml [Zeile 67]

Preferred XSLT-Extension

Neu definiert in folgenden Ableitungen:

string   $result [Zeile 49]

output string


string   $xmldata [Zeile 19]

XML data


string   $xmlfile [Zeile 37]

XML-data


string   $xsldata [Zeile 25]

XSL stylesheet data


string   $xslfile [Zeile 31]

XSL-stylesheet-file


Methods
Constructor xsl_transform  [Zeile 74]

  xsl_transform xsl_transform( string $xslfile, string $xmlfile  )

Constructor

Parameters:
string   $xslfile:  XSL-Datei
string   $xmlfile:  XML-Datei


check_extensions  [Zeile 86]

  boolean check_extensions( )

Check extension


API Tags:
Access:  public


entity2xml  [Zeile 316]

  string entity2xml( string $str, [mixed $escape_tags = false]  )

Make string XML-compatible

Parameters:
string   $str: 

API Tags:
Return:  result


getFormattedLines  [Zeile 400]

  string getFormattedLines( string $linestr, integer $errorline, [bool $linked = true]  )

Output formatting of sourcecode

Parameters:
string   $linestr:  Code line as String
integer   $errorline:  error line
bool   $linked:  create hyperlink

API Tags:
Return:  $result


getLastError  [Zeile 336]

  string getLastError( [boolean $linkit = false]  )

Sow last error

Parameters:
boolean   $linkit:  create hyperlink ?

API Tags:
Return:  $result


getLastErrorHTML  [Zeile 371]

  string getLastErrorHTML( )

HTML error message


API Tags:
Return:  $result;


handler_xslt_error  [Zeile 262]

  void handler_xslt_error( )

Error handler for new extensions


API Tags:
Access:  public


load_file  [Zeile 296]

  mixed load_file( string $filename  )

load data out of file

Parameters:
string   $filename:  file name

API Tags:
Return:  result or false


parse  [Zeile 97]

  void parse( [bool $output = false]  )

Parse data

Parameters:
bool   $output:  = Direkt ausgeben

Neu definiert in folgenden Ableitungen:

parse_php4domxslt  [Zeile 150]

  mixed parse_php4domxslt( [boolean $output = false]  )

Parse XSLT with php 4 ext/dom_xml (libxslt)

Parameters:
boolean   $output:  print result?

API Tags:
Return:  false or result string
Access:  public


parse_php4xslt  [Zeile 222]

  mixed parse_php4xslt( [boolean $output = false]  )

Parse XSLT with php 4 ext/xslt (Sablotron)

Parameters:
boolean   $output:  print result?

API Tags:
Return:  false or result string
Access:  public


parse_php5domxsl  [Zeile 179]

  mixed parse_php5domxsl( [boolean $output = false]  )

Parse XSLT with php 5 ext/xsl (libxslt)

Parameters:
boolean   $output:  print result?

API Tags:
Return:  false or result string
Access:  public


setError  [Zeile 277]

  void setError( integer $err, string $errStr  )

Error function for old Extension Transfor error sting in hash

Parameters:
integer   $err:  error number
string   $errStr:  error message


setParam  [Zeile 435]

  void setParam( string $name, string $value, [boolean $escape = true]  )

Set parameters and escape them if necessary

Parameters:
string   $name:  parameter name
string   $value:  value of parameter
boolean   $escape:  escape value ?


showDebug  [Zeile 135]

  void showDebug( string $msg  )

Output debug messages

Parameters:
string   $msg:  output message