Document: ezcDocumentDocbookToHtmlConverter
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentDocbookToHtmlConverter
|
Converter for docbook to XHtml with a PHP callback based mechanism, for fast and easy PHP based extensible transformations. [
source]
This converter does not support the full docbook standard, but only a subset commonly used in the document component. If you need to transform documents using the full docbook you might prefer to use the ezcDocumentDocbookToHtmlXsltConverter with the default stylesheet from Welsh.
Parents
ezcDocumentConverter
|
--ezcDocumentElementVisitorConverter
|
--ezcDocumentDocbookToHtmlConverter
Member Variables
|
protected int |
$footnoteNumber
= 0
Autoincrementing number for footnotes. |
|
protected array |
$footnotes
= array()
Array for footnotes aggregated during the processing of the document.
Will be rendered at the end of the HTML document. |
|
protected DOMElement |
$head
Reference to the HTML header section |
Inherited Member Variables
From
ezcDocumentElementVisitorConverter:
From
ezcDocumentConverter:
Method Summary
Inherited Methods
From
ezcDocumentElementVisitorConverter :
From
ezcDocumentConverter :
Methods
__construct
Construct converter
Construct converter from XSLT file, which is used for the actual
Parameters
Redefinition of
addStylesheets
void addStylesheets(
$head )
Add stylesheets to header
Parameters
| Name |
Type |
Description |
$head |
DOMElement |
|
appendFootnote
int appendFootnote(
$node )
Append footnote
Append a footnote to the document, which then will be visited at the end of the document processing. Returns a numeric identifier for the footnote.
Parameters
| Name |
Type |
Description |
$node |
DOMElement |
|
appendFootnotes
void appendFootnotes(
$root )
Append footnotes
Append the footnotes to the end of the document. The footnotes are embedded directly in the text in docbook, aggregated during the processing of the document, and displayed at the bottom of the HTML document.
Parameters
| Name |
Type |
Description |
$root |
DOMElement |
|
createDocument
ezcDocumentDocument createDocument(
mixed
$content )
Create document from structure
Build a ezcDocumentDocument object from the structure created during the visiting process.
Parameters
| Name |
Type |
Description |
$content |
mixed |
|
Redefinition of
initializeDocument
mixed initializeDocument(
)
Initialize destination document
Initialize the structure which the destination document could be build with. This may be an initial DOMDocument with some default elements, or a string, or something else.
Redefinition of
visitText
mixed visitText(
$node, mixed
$root )
Visit text node.
Visit a text node in the source document and transform it to the destination result
Parameters
| Name |
Type |
Description |
$node |
DOMText |
|
$root |
mixed |
|
Redefinition of
Last updated: Mon, 21 Dec 2009