944,028 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3328
  • PHP RSS
Sep 28th, 2004
0

How do I install Sablotron with PHP?

Expand Post »
hi every one please guide me. How do I install Sablotron with PHP?

Thanks
Laxy
Last edited by Ezzaral; Sep 13th, 2009 at 12:05 am. Reason: Removed fake sig link
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
laxy_m is offline Offline
10 posts
since Sep 2004
Sep 12th, 2009
0

Re: How do I install Sablotron with PHP?

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
Team Colleague
Reputation Points: 55
Solved Threads: 3
Junior Poster
meabed is offline Offline
139 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: problems with htmlentities(noob question)
Next Thread in PHP Forum Timeline: Back button problem with $Sessions and GET





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC