Your Daily Source for Apache News and Information |
![]() ![]() |
Breaking News | Preferences | Contribute | Triggers | Link Us | Search | About |
![]() ![]()
|
"XSLT is a language for transforming XML documents into other XML documents or HTML documents. I will not discuss XML, XSL or XSLT syntax in this article, for a good introduction to these please refer to the links at the end of this article.The focus of this article is on how to transform XML documents with XSLT using the Sablotron XSLT processor." "Sablotron is the result of a project to develop a fast, reliable, compact and portable XSLT processor conforming to the W3C specification. It currently supports Linux, Windows NT and, beginning with version 0.42, Solaris. It requires the expat XML Parser. In addition to these pieces of software the PHP4 sablotron extension wrapper is required to build an extension module that you can load with the PHP4 parser to give you access to the Sablotron API. This may sound a bit complex but it's really not and the result is well worth the power that these functions will provide you with. Some links to instructions on how to do all this are provided at the end of the article." "To demonstrate the use of these functions I have written an XSLT class that takes XML and XSL wether it be in the format of a file, a URL or a String and performs the transform. I use this class to to read an XML document from the web (the Slashdot news!) and transform it into an HTML page using an XSLT document on the local file system. I'll do my best to explain how I've done this and welcome questions in the followup section, so here goes nothing!" Complete Story Related Stories: |
|
No talkbacks posted. |
About Triggers | Media Kit | Security | Triggers | Login |
All times are recorded in UTC. Linux is a trademark of Linus Torvalds. Powered by Linux 2.4, Apache 1.3, and PHP 4 Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy. ![]() |