Here I am, as root, installing xalan via yum. However, there's no man page for xalan and I'm just not sure how to invoke the program. The example I use below is straight from the xalan web page. (This is on Fedora, FC4, if that matters.)
[EMAIL PROTECTED] ~]# yum -y install xalan-j2-demo-2.7.0-1jpp Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package xalan-j2-demo.noarch 0:2.7.0-1jpp set to be updated --> Running transaction check --> Processing Dependency: xalan-j2 = 0:2.7.0-1jpp for package: xalan-j2-demo --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package xalan-j2.noarch 0:2.7.0-1jpp set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: xalan-j2-demo noarch 2.7.0-1jpp jpackage-generic 3.6 M Installing for dependencies: xalan-j2 noarch 2.7.0-1jpp jpackage-generic 1.7 M Transaction Summary ============================================================================= Install 2 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 5.3 M Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: xalan-j2 ######################### [1/2] Installing: xalan-j2-demo ######################### [2/2] Installed: xalan-j2-demo.noarch 0:2.7.0-1jpp Dependency Installed: xalan-j2.noarch 0:2.7.0-1jpp Complete! [EMAIL PROTECTED] ~]# yum -y install xalan-j2-manual-2.7.0-1jpp Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package xalan-j2-manual.noarch 0:2.7.0-1jpp set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: xalan-j2-manual noarch 2.7.0-1jpp jpackage-generic 10 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 10 k Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: xalan-j2-manual ######################### [1/1] Installed: xalan-j2-manual.noarch 0:2.7.0-1jpp Complete! [EMAIL PROTECTED] ~]# exit logout [EMAIL PROTECTED] xml]$ pwd /home/thufir/xml [EMAIL PROTECTED] xml]$ ll total 44 -rw-rw-r-- 1 thufir thufir 6787 Feb 18 06:59 foo.ods -rw-rw-r-- 1 thufir thufir 3194 Feb 18 07:05 foo.xhtml -rw-rw-r-- 1 thufir thufir 423 Feb 18 07:07 foo.xsl drwxrwxr-x 2 thufir thufir 4096 Feb 18 07:06 raw -rw-rw-r-- 1 thufir thufir 759 Feb 18 07:14 typescript [EMAIL PROTECTED] xml]$ java org.apache.xalan.xslt.Process -IN foo.xhtml -XSL foo.xsl -OUT foo.out Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xalan/xslt/Process [EMAIL PROTECTED] xml]$ java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) [EMAIL PROTECTED] xml]$ cat foo.xhtml <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title /><meta name="generator" content="StarOffice/OpenOffice.org XSLT (http://xml.openoffice.org/sx2ml)" /><meta name="created" content="2006-02-18T06:45:34" /><meta name="changed" content="2006-02-18T06:59:44" /><base href="." /><style type="text/css"> @page { } table { border-collapse:collapse; border-spacing:0; empty-cells:show } td, th { vertical-align:top; } h1, h2, h3, h4, h5, h6 { clear:both } ol, ul { padding:0; } * { margin:0; } *.ta1 { } *.ce1 { font-family:'Nimbus Roman No9 L'; text-align:right ! important; font-size:10pt; font-style:normal; text-shadow:none; font-weight:normal; } *.ce2 { font-family:'Bitstream Vera Sans'; text-align:right ! important; } *.ce3 { font-family:'Nimbus Roman No9 L'; font-size:10pt; font-style:normal; text-shadow:none; font-weight:normal; } *.Default { font-family:'Bitstream Vera Sans'; } *.Heading { font-family:'Bitstream Vera Sans'; text-align:center ! important; font-size:16pt; font-style:italic; font-weight:bold; } *.Heading1 { font-family:'Bitstream Vera Sans'; text-align:center ! important; font-size:16pt; font-style:italic; font-weight:bold; } *.Result { font-family:'Bitstream Vera Sans'; font-style:italic; font-weight:bold; text-decoration:underline; } *.Result2 { font-family:'Bitstream Vera Sans'; font-style:italic; font-weight:bold; text-decoration:underline; } *.co1 { width:0.8925in; } *.ro1 { height:0.4146in; } *.ro2 { height:0.2173in; } *.ro3 { height:0.1681in; } </style></head><body dir="ltr"><table border="0" cellspacing="0" cellpadding="0" class="ta1"><colgroup><col width="99" /><col width="99" /></colgroup><tr class="ro1"><td style="text-align:right; width:0.8925in; " class="ce1"><p>1 </p></td><td style="text-align:left;width:0.8925in; " class="ce3"><p><a href="http://www.yahoo.com/">yahoo</a> </p></td></tr><tr class="ro2"><td style="text-align:right; width:0.8925in; " class="ce1"><p>2 </p></td><td style="text-align:left;width:0.8925in; " class="ce3"><p><a href="http://www.google.com/">google</a></p></td></tr><tr class="ro1"><td style="text-align:right; width:0.8925in; " class="ce1"><p>3 </p></td><td style="text-align:left;width:0.8925in; " class="ce3"><p><a href="http://www.msn.com/">MSN</a> </p></td></tr><tr class="ro3"><td style="text-align:left;width:0.8925in; " class="ce2" /><td style="text-align:left;width:0.8925in; " class="Default" /></tr><tr class="ro3"><td style="text-align:left;width:0.8925in; " class="ce2" /><td style="text-align:left;width:0.8925in; " class="Default" /></tr></table><table border="0" cellspacing="0" cellpadding="0" class="ta1"><colgroup><col width="99" /></colgroup><tr class="ro3"><td style="text-align:left;width:0.8925in; " class="Default" /></tr></table><table border="0" cellspacing="0" cellpadding="0" class="ta1"><colgroup><col width="99" /></colgroup><tr class="ro3"><td style="text-align:left;width:0.8925in; " class="Default" /></tr></table></body></html> [EMAIL PROTECTED] xml]$ cat foo.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text" version="1.0" encoding="UTF-8" /> <xsl:template match="/"> <xsl:apply-templates select="//[EMAIL PROTECTED]"/> </xsl:template> <xsl:template match="[EMAIL PROTECTED]"> <xsl:value-of select="."/> <xsl:text> </xsl:text> <xsl:value-of select="@href"/> <xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet> [EMAIL PROTECTED] xml]$ date Sat Feb 18 07:27:35 EST 2006 [EMAIL PROTECTED] xml]$ thanks, Thufir -- It has been said that democracy is the worst form of government except all the others that have been tried. Sir Winston Churchill
