This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xalan params


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]