 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Volker Dusch's Blog: Creating your custom PHPUnit output formats
by Chris Cornutt January 20, 2011 @ 08:36:00
Volker Dusch has a new post to his blog today talking about PHPUnit and how you can make custom output formats to get the results exactly how you need them. The trick is in using XSLT for transformation.
While tackling with someones question i decided it's time to play around with xslt for learning purposes and i found something useful to do.
He wanted to extend the --testdox-html output and i proposed to just transform phpunits xml output using an xslt since i didn't see a easy way to prove a custom implemenation for PHPUnit/Util/TestDox/ResultPrinter/HTML.php and i didn't want to change the file its self.
He gives an example of how to use the textdox output method to generate an XML document of the unit test run's results and a simple XSLT style sheet to format the results as a custom HTML page. He uses the "xsltproc" command line tool to make the translation happen.
voice your opinion now!
phpunit textdox xml xslt convert output format
Hernani Cerqueira's Blog: XSLT as a templating engine for PHP
by Chris Cornutt January 05, 2010 @ 10:12:57
Hernani Cerqueira has posted a quick introduction to using XSLT (an XML-based markup for styling XML documents) as a templating engine for PHP.
One thing that I miss is a good unobtrusive template engine for PHP. Of course there is smarty, and a bunch of pear packages as well as some other free or commercial projects, and I'm honest to say that I'd never tried none of these, simply because I still see XSLT as a perfectly valid and powerful solution This post is a small tutorial about using XSLT as a templating engine for PHP.
He takes some time to explain what XSLT is and why it's a good choice (from his opinion) for templating your site. A code example is included where he builds a simple XML document (with the DOMDocument functionality of PHP) and creates a XSLT style sheet to take that information and change it into a formatted HTML document. Outputting the result is easy with the creation of a new XSLTProcessor object and a push out the other side with a transformToXML method call.
voice your opinion now!
xslt template language tutorial
IBM developerWorks: Create a Yahoo! SearchMonkey application
by Chris Cornutt October 16, 2008 @ 09:36:20
The IBM developerWorks has a new tutorial they've posted (free registration required) looking at making a Yahoo! SearchMonkey application by combining an RDF document, transforming it with XSLT and binding it all together with PHP.
SearchMonkey is the first product from a mainstream search engine provider that takes advantage of Semantic Web technologies to enable you to produce more relevant search results and thus drive more traffic to your Web site. With common Web development technologies such as PHP, XSLT, and XPath, provide a better experience for searchers as you use structured data encoded in Web pages using Semantic Web standards such as Microformats, eRDF, and RDFa.
They start the tutorial by introducing the SearchMonkey technology and a sample application showing how to interface with it (enhancing the search results for the blogspot.com blogs). The XSLT comes in when formatting the RDF data (DataRSS) by overlaying the data on existing websites.
voice your opinion now!
rdf xslt tutorial searchmonkey yahoo search result
|
Community Events
Don't see your event here? Let us know!
|