| | |
How do I install Sablotron with PHP?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Sablotron is a fast, GPL or MPL licensed XSLT engine fully implemented in C++. It uses the well-known Expat XML parser (included with the source code). It is available at its creator web site : http://www.gingerall.com. Okay, now you may ask : what is an XSLT engine, and what does it do? Well, it does XSL transformations i.e it transforms some XML data in a particular format into another format. Here is a tutorial on these transformations. Sablotron is not as complete as Xalan-J or XT (for example it didn't work on a docbook stylesheet), but it should do fine (and fast) for simple transformations.
Once installed, the command line for running Sablotron and applying the file.xsl stylesheet to the file.xml containing some XML data is :
sabcmd file.xsl file.xml
sabcmd is also stream-aware, so you can pipe the output of a 'cat file' into sabcmd and output the result of the transformation to screen. For example:
cat file.xml | sabcmd file.xsl
Add the '-m' flag to output the time taken by the transformation:
sabcmd -m file.xsl file.xml
Once installed, the command line for running Sablotron and applying the file.xsl stylesheet to the file.xml containing some XML data is :
sabcmd file.xsl file.xml
sabcmd is also stream-aware, so you can pipe the output of a 'cat file' into sabcmd and output the result of the transformation to screen. For example:
cat file.xml | sabcmd file.xsl
Add the '-m' flag to output the time taken by the transformation:
sabcmd -m file.xsl file.xml
Real Eyes Realize Real Lies
My Resume
My Resume
![]() |
Similar Threads
- Apache (Linux Servers and Apache)
- PHP 5 - Over before it began (PHP)
- Php Installers (PHP)
- testing php (PHP)
- PHP newbie... (PHP)
- INSTALL PHP on XP HOME-edition with APACHE (PHP)
- can't install Apache-many tries (Linux Servers and Apache)
- PHP Installation (PHP)
- PHP vs. Pearl (PHP)
Other Threads in the PHP Forum
- Previous Thread: problems with htmlentities(noob question)
- Next Thread: Back button problem with $Sessions and GET
Views: 2669 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code countingeverycharactersfromastring cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match menu methods mlm mod_rewrite multiple mysql oop pageing parse paypal pdf php printer problem query radio random recursion regex remote script search select server sessions simple sms soap source space spam speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





