Skip to content

Commit

Permalink
RFC #47: Exemplo simples de transformação do XML da presentation logic
Browse files Browse the repository at this point in the history
para HTML5.
  • Loading branch information
netojoaobatista committed Oct 6, 2012
1 parent e226572 commit e7d051d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions public/create.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
require 'bootstrap.php';

use Ophportunidades\Presentation\PositionCreationPresentation;

$presentation = new PositionCreationPresentation();
$drew = $presentation->draw();

$xsl = new DOMDocument();
$xsl->load('theme/default/template.xsl');

$proc = new XSLTProcessor();
$proc->importStylesheet($xsl);

echo $proc->transformToDoc($drew)->saveHTML();

0 comments on commit e7d051d

Please sign in to comment.