




















|
 |  |  |  | Downloading what you need |  |  |  |  |
| |
For Xalan-C++ version 1.1, we are distributing a Windows32 Visual C++ build and four UNIX builds with a makefile: a Red Hat Linux GNU build, an AIX xlC_r build, an HP-UX 11 aCC build, and a Solaris build.
Please contact us at Xalan Development Mailing List if you would like to help provide builds for other platforms.
For the Windows32 build, download Xalan-C_1_1-win32.zip. This Windows32 distribution was built with MSVC 6.0 SP3 and Dinkumware C++ library fixes.
For the Linux build, download Xalan-C_1_1-linux.tar.gz. This Red Hat Linux 6.1 distribution was built with egcs-2.91.66 and glibc-2.1.2-11.
For the AIX build, download Xalan-C_1_1-aix.tar.gz. This AIX 4.3 distribution was built with IBM C and C++ for AIX 3.6.6.
For the HP-UX 11 build, download Xalan-C_1_1-hp-ux.tar.gz. This HP-UX 11 distribution was built with aCC A.03.27.
For the Solaris build, download Xalan-C_1_1-solaris.tar.gz. This Solaris distribution was built with Workshop 4.2.
Each distribution contains all you need to run the Xalan command-line transformations utility and to build your own applications.
If you want to take advantage of the support for number formatting, sorting, and encoding the ICU provides, you should also download and install the International Components for Unicode (ICU); see Using the 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, XalanSourceTree,dll, XercesParserLiaison.dll, XMLSupport.dll, XPath.dll, XSLT.dll, XalanTransformer.dll
- The Xerces-C++ dynamic link library: xerces-c_1_4.dll
Linux
- The executable: TestXSLT
- The Xalan-C++ shared library: libxalan-c1_1.so
- The Xerces-C++ shared library: libxerces-c1_4.so
AIX
- The executable: TestXSLT
- The Xalan-C++ load library: libxalan-c1_1.a
- The Xerces-C++ load library: libxerces-c1_4.a
HP-UX 11
- The executable: TestXSLT
- The Xalan-C++ shared library: libxalan-c1_1.sl
- The Xerces-C++ shared library: libxerces-c1_4.sl
Solaris
- The executable: TestXSLT
- The Xalan-C++ shared library: libxalan-c1_1.so
- The Xerces-C++ shared library: libxerces-c1_4.so
If you want to enable ICU support for the command-line utility, you must build the ICU and rebuild the Xalan-C++ shared/load library (Linux/AIX/HP-UX 11) and TestXSLT (all platforms) with the ICUBridge. See Using the ICU and Enabling ICU support for TestXSLT.
For information about using the command-line utility, see Command-Line Utility.
 | If you want to do your own AIX or Solaris build, you must download STLport and set the STLPORTROOT
environment variable to the complete path to the STLPort distribution (see the Build notes) |
|
 |  |  |  | What you need to build and run applications |  |  |  |  |
| |
To build your own applications with Xalan and Xerces, you also need need the
Xalan-C++ and Xerces-C++ header (.hpp) files and (for Windows) the Xalan-C++ and Xerces-C++ libraries (.lib files). To run your applications, you need the Xalan-C++ and Xerces-C++ library files (.dll files for Windows, shared or load libraries for the UNIX platforms).
The Xalan-C++ and Xerces-C++ header files are in the src directory trees in both distributions.
In the Windows32 distribution (built with Microsoft® Visual C++® 6.0), the .dlls and libraries are in the Build\Win32\V6 Debug and Release subdirectories.
In the Linux distribution (built with a make file and the GNU C++ compiler on Red Hat Linux 6.1), the shared object libraries are in the lib subdirectories.
In the AIX distribution (built with the make file and xlC_r), the load libraries are in the lib subdirectories.
In the HP-UX 11 distribution (built with the make file and aCC), the shared libraries are in the lib subdirectories.
In the Solaris distribution (built with the make file and CC), the shared libraries are in the lib subdirectories.
 | For your convenience, both the Xalan and Xerces libraries are placed together in the pertinent xml-xalan directory, whereas the corresponding xml-xerces directory only contains Xerces libraries. |
If you want to enable ICU support in your applications, you must rebuild the Xalan-C++ shared/load library (Linux/AIX) and include the ICUBridge headers (all platforms).
For the requirements for rebuilding Xalan-C++, see the Build notes.
|
|
 |  |  |  | Setting up the path/library path |  |  |  |  |
| |
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 on the path (PATH) and xml-xalan/c/lib on the shared library path (LD_LIBRARY_PATH for Red Hat Linux 6.1), or copy libxalan-c1_1.so to /usr/lib.
For the Xalan-C++ AIX distribution, place xml-xalan/c/bin on the path (PATH) and xml-xalan/c/lib on the load library path (LIBPATH), or copy libxalan-c1_1.a to /usr/lib.
For the Xalan-C++ HP-UX 11 distribution, place xml-xalan/c/bin on the path (PATH) and xml-xalan/c/lib on the shared library path (SHLIB_PATH), or copy libxalan-c1_1.a to /usr/lib.
For the Xalan-C++ Solaris distribution, place xml-xalan/c/bin on the path (PATH) and xml-xalan/c/lib on the shared library path (LD_LIBRARY_PATH), or copy libxalan-c1_1.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. We have precompiled these samples for you so they are ready to run, and you can review the source files to see just how they work.
To run the samples, do the following:
- Set up your path (see above). In the Windows32 distribution, the sample executables are in
xml-xalan\c\Build\Win32\VC6\Release. In the UNIX distributions, the executables are in xml-xalan/c/bin.
- Go to the samples subdirectory containing the sample.
- Run the sample from the command line (in Windows, use the DOS shell).
- 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.
|
|
|