Exemplo n.º 1
0
 /**
  * @dataProvider getTestDocuments
  */
 public function testCreateFromDocbook($to, $from)
 {
     // Tested for correctness in converter tests!
     $docbook = new ezcDocumentDocbook();
     $docbook->loadFile($from);
     $document = new ezcDocumentOdt();
     $document->createFromDocbook($docbook);
     $this->assertNotNull($document->getDomDocument());
 }
Exemplo n.º 2
0
<?php

require 'tutorial_autoload.php';
$docbook = new ezcDocumentDocbook();
$docbook->loadFile('docbook.xml');
$odt = new ezcDocumentOdt();
$odt->createFromDocbook($docbook);
echo $odt->save();