This section describes how to install the free processors. The commercial processors are assumed to provide instructions and support. Youshould check the details with each product that is described here, as the steps may changeover time.
Whenever you want to add new packages to Cygwin you run the setup.exe file again as if installing from scratch. The Cygwin setup can be downloaded here. Then search for the openssh package and install it. (remember you can do this even after having it installed, it'll just add what you need). You do NOT need to do any configuration, as long as the Cygwin or MinGW binaries are included in the PATH environment variable. CDT searches the PATH to discover the C/C compilers. Writing your First C/C Program in Eclipse. Cygwin (64-bit) is a collection of tools which provide a Linux look and feel environment for Windows. Cygwin is a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API.
The installation of xsltproc is platform dependent since it is a compiled C program. You will need a C compiler and associated Make tools unless you are using Windows. Macintosh users can download binaries from http://www.zveno.com/open_source/libxml2xslt.html.
You can download precompiled versions for Windows from Igor Zlatkovic's website: http://www.zlatkovic.com/libxml.en.html
That page also describes how to install the files and use xsltproc on Windows. You need to download the packages for
libxml , libxslt , zlib , and iconv . They arrive as .zip files which can be unpacked with any of the zip utilities on Windows.
Once you have unpacked them, your environment's
PATH variable must include the locations of the command files like xsltproc.exe and the set of library files named with the .dll suffix. Since they install into separate directories, you may need to add several PATH entries. So it is perhaps simplest to just copy all the files into a single location already in the PATH . For example, find and copy thefollowing files into C:WindowsSystem32 :
You will know it is working if you can execute the following command in a Command shell to list the version information:
Cygwin is a Linux-like environment that runs on Windows. It gives you the same command shells and utilities that are available on Linux systems. If you are comfortable with Linux, then you can have it on Windows too. There is a version of xsltproc for Cygwin.
If your Windows machine is connected to the Internet, then go to this website:
You will see information for installing Cygwin over the Internet. The complete Cygwin collection of packages is big, so it might take a long time over a slow connection. You can select only the packages you need. Read the directions for understanding the GUI interface used by the Cygwin setup. The two packages you must have are
libxml2 and libxslt , both available under the Libs category. You should also install one of the shells such as bash .
Once you have installed the packages, you should be able to start a Cygwin shell and execute this command to see the version installed:
If you are running a recent vintage of Linux, there is a good chance you will already have xsltproc installed on your system. Try the following command to see if you do:
If that command fails, or if it reports an old version, you can install the files you need using the RPM packages. The RPM packages can be found using the following URLs:
You need system administration privileges (root) to install packages. Then commands such as these should work:
Then try
xsltproc -version to see if it reports the new version number.
If you cannot find a precompiled version of xsltproc for your platform, or if you want the very latest version, then you can compile it yourself from source. It is pretty easy to compile xslproc if you use the GNU compiler. That compiler is generally available on all Linux distributions, and is also available for many Unix systems. It is even available for Cygwin (a Linux environment that runs on Windows). You might need to search the Internet to find one for your system if it does not already have one.
Once you have gcc set up, download and unpack the latest xsltproc source archives from
http://xmlsoft.org/XSLT/ (unless you are compiling under Cygwin, in which case you should download the source from the Cygwin archive). To run the xsltproc processor, you need the libxml2 and libxslt packages, the ones with the highest version numbers. Then do the following:
If you get a
Command Not Found error message, then you need to find where xsltproc isinstalled and add that location to your PATH environment variable.
To use xsltproc, you specify the location of the mainstylesheet file and your DocBook document, as well as any options and parameters:
You can place any options such as
--output after xsltproc . The options are listed at http://xmlsoft.org/XSLT/xsltproc2.html. You can use any number of --stringparam options to pass stylesheet parameter values on the command line, in this case setting the parameter named use.extensions to a value of 0 (because xsltproc cannot use the Java stylesheet extensions). If a parameter value includes spaces or special characters, put it in quotes.
Note
Two xsltproc options you do not want touse with DocBook are
--html which is for HTML input, and --docbook which is for DocBook SGML input, notXML input.
If you do not like using a command line interface, you can download the free tkxsltproc from http://tclxml.sourceforge.net/tkxsltproc.html. It is a graphical interface to xsltproc that lets you browse for filenames and set options and parameters.
Saxon is a Java-based XSLT processor that is well respected for its adherence to the XSLT standard. Currently Saxon is available in four packages:
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |