12.4.4 What else can XSL do?This is NOT the latest copy of this book; click here for the latest version.
You'd be surprised at the power of XSL. What you have seen here really is only the beginning. For example, many sites make their news content available in XML format so that sites can syndicate their news. In the XSL stylesheets above, I have included a specific xmlns attribute in the xsl:stylesheet tag that will allow you to parse the RSS and RDF formats used by many syndicating news sites. Experiment!
There are also a variety of other XSL processing tags for you to make use of, conditional statements ("if foo = bar") for example. The W3C has a very large collection of freely-available information online about XML and XSLT, which is a rich mine for ideas; be sure to check it out!
|
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.
My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!
|