Parse the bibliographic style's XML

Conversion to use with PHP's simpleXML by Ritesh Agrawal and Mark Grimshaw 2007/2008

version 1
package wikindx4\core\bibcitation
author Mark Grimshaw

 Methods

PARSEXML

__construct() 

Extract entries from file

extractEntries(string $file) 

Parameters

$file

string
  • Location of StyleFile

Read the chosen bibliographic style and create arrays based on resource type.

loadStyle(string $output, boolean $export, string $stylePath) : boolean
author Mark Grimshaw
version 1

Parameters

$output

string

'html', plain', 'rtf'. Default is 'html'

$export

boolean

The requested bibliographic output style.

$stylePath

string

The path where the styles are.

Returns

boolean

Convert XML to array

XMLToArray(string $xml) : mixed

code borrowed from http://php.net

Parameters

$xml

string

Returns

mixed

Create style cache

createCache() 

Cycle through XML

getFootnotes(string $xmlString) 

Parameters

$xmlString

string

Get the bibliographic style file

getStyle(string $output, boolean $export) 

Parameters

$output

string

'html', plain', 'rtf'. Default is 'html'

$export

boolean

The requested bibliographic output style.

Cycle through XML

getStyleTypes(string $xmlString) 

Parameters

$xmlString

string

Load style cache file if available

loadCache() : boolean

Returns

boolean

 Properties

 

$citation 
 

$common 
 

$footnote 
 

$info 
 

$types 
 

$db 
 

$session 
 

$setupStyle