This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
xalan params
- From: Eric Richardson <eric dot richardson at milagrosoft dot com>
- To: docbook <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 11 Apr 2002 18:34:55 -0700
- Subject: DOCBOOK-APPS: xalan params
- Organization: MilagroSoft Inc.
Hi,
I'm trying to pass a param to xalan command line as follows:
java org.apache.xalan.xslt.Process -PARAM test testvalue -IN ....
In my driver file I'm trying to get at it but it can't find it.
file:///home/maxwell/pws/jdocbook/drivers/xhtmldriver.xsl; Line 10;
Column 42; XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
org.apache.xml.utils.WrappedRuntimeException: Could not find variable
with the name of test
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:import href="../docbook-xsl/xhtml/docbook.xsl"/>
<!-- print test param passed from xalan -->
<xsl:param name="testin" select="$test"/>
<xsl:template match="/">
<xsl:text>The param test = "$testin"</xsl:text>
</xsl:template>
rest of stylesheet.
Any ideas?
Thanks,
Eric