public function let()
 {
     $this->xml = XMLString::fromString('<?xml version="1.0"?><hello-world><greeter>An XSLT Programmer</greeter><greeting>Hello, World!</greeting></hello-world>');
     $this->xsl = XSLString::fromString('<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="/hello-world"><HTML><HEAD><TITLE></TITLE></HEAD><BODY><H1><xsl:value-of select="greeting"/></H1><xsl:apply-templates select="greeter"/></BODY></HTML></xsl:template><xsl:template match="greeter"><DIV>from <I><xsl:value-of select="."/></I></DIV></xsl:template></xsl:stylesheet>');
     $this->output = '<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE></TITLE></HEAD><BODY><H1>Hello, World!</H1><DIV>from <I>An XSLT Programmer</I></DIV></BODY></HTML>';
     $this->beConstructedWith($this->xml, $this->xsl);
 }
 /**
  * @param XMLString $xml
  */
 public function __construct(XMLString $xml)
 {
     $xsl = XSLString::fromString(file_get_contents(dirname(__FILE__) . '/../../../lib/xsl/jats-to-html.xsl'));
     parent::__construct($xml, $xsl);
     $this->html = $this->getOutput();
 }
 private function setXSL($xsl)
 {
     $this->setFile($xsl);
     $this->xsl = XSLString::fromString(file_get_contents($this->getFile()))->getValue();
 }
 /**
  * @param XMLString $xml
  * @param string $type
  *
  * @throws InvalidArgumentException
  */
 public function __construct(XMLString $xml, $type = 'bibtex')
 {
     Assert\that($type)->string()->regex('#^(bibtex|ris)$#');
     $xsl = XSLString::fromString(file_get_contents(dirname(__FILE__) . '/../../../lib/xsl/jats-to-' . $type . '.xsl'));
     parent::__construct($xml, $xsl);
 }
 public function getXSL()
 {
     return XSLString::fromString($this->xsl);
 }