|
| | | | Downloading what you need | | | | |
| |
For Xalan-C++ version 0.40.0, we are distributing a Windows32 Visual C++ build and a Linux build. In the future, we intend to add builds for other platforms.
For the Windows32 build, download Xalan-C_0_40_0-win32.zip.
For the Linux build, download Xalan-C_0_40_0-linux.tar.gz
Each distribution contains all you need to run the Xalan command-line utility for performing transformations. To build your own applications, you also need a compatible Xerces-C++ distribution and (NOT FOR THIS RELEASE)the International Components for Unicode(ICU).
| | | | What you need to run the Xalan command-line utility | | | | |
| |
To run the Xalan executable for performing transformations, you need the following:
Windows32
- The executable: TestXSLT.exe
- The Xalan-C++ dynamic link libraries: DOMSupport.dll, PlatformSupport.dll, XalanDOM.dll, XercesParserLiaison.dll, XercesPlatformSupport.dll, XMLSupport.dll, XPath.dll, XSLT.dll
- The Xerces-C++ dynamic link library: xerces-c_1_2.dll
- (NOT FOR THIS RELEASE) The International Components for Unicode (ICU) dynamic link libraries: icui18n.dll, icuuc.dll
- (NOT FOR THIS RELEASE) The ICU locale data files
Linux
- The utility: TestXSLT
- The Xalan-C++ shared library: libxalan-c0_40.so
- The Xerces-C++ shared library: libxerces-c1_2.so
- (NOT FOR THIS RELEASE) The International Components for Unicode (ICU) shared library: libicu-1_4_1_2.so
- (NOT FOR THIS RELEASE) The ICU locale data files
(NOT FOR THIS RELEASE and we will place the locale data files where they can be found) ICU requires you to set the ICU_DATA environment variable to point to the directory containing the ICU locale data files. In the Windows32 distribution, this is xml-xalan\c\Build\Win32\VC6\Release\Data. In the Linux distribution, it is xml-xalan/c/lib/data.
For information about using the command-line utility, see Command-Line Utility.
|
|
| |
For the Xalan-C++ Windows32 distribution, place xml-xalan\c\Build\Win32\VC6\Release on the path.
For the Xalan-C++ Linux distribution, place xml-xalan/c/bin and xml-xalan/c/lib on the shared library path (LD_LIBRARY_PATH for Red Hat Linux 6.1), or copy libxalan-c0_40.so to /usr/lib..
If you do your own Xalan, ICU, and Xerces builds, be sure to include the directories that contain the libraries and the TextXSLT executable on your path.
|
| |
The Xalan-C++ distribution includes a number of basic sample applications. These samples are easy to compile and run,
and you can review the source files -- all of which are brief -- to see just how they work. In the Windows32 distribution, we have precompiled these samples for you so they are ready to run. In the Linux distribution, you need to build them first.
To run the samples, do the following:
- (Linux only) Set up make files and compile the sample sources (you may need to make some minor changes in the header files to accommodate Linux) and build an executable for each sample application.
- Set up your path (see above). In the Windows32 distribution, the sample executables are in
xml-xalan\c\Build\Win32\VC6\Release. For Linux, we suggest you build the executables in xml-xalan/c/bin.
- Go to the samples subdirectory containing the sample (use the DOS shell in Windows).
- Run the sample from the command line.
- Examine the application source files.
For example, go to the SimpleTransform subdirectory and issue the following command:
SimpleTransform
SimpleTransform uses the foo.xsl stylesheet to transform foo.xml, and writes the transformation result to foo.out. To see how the example works, examine the source files: foo.xml, foo.xsl, foo.out, and SimpleTransform.cpp.
For more information about the samples, see Xalan-C++ Samples.
|
|
|