Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you use Xalan-J "-param" option?

Status
Not open for further replies.

mountainbiker

Programmer
Aug 21, 2002
122
GB
I cannot seem to get the -param command-line option of xalan to work.

command-line
Code:
java org.apache.xalan.xslt.Process 
    -in a.xml -xsl a.xsl -out a.html -param
a
Code:
 1

xml
Code:
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<A></A>

xsl
Code:
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform&quot;>[/URL]
    <xsl:template match=&quot;/&quot;>
	    <h1>[<xsl:value-of select=&quot;
$a
Code:
&quot;/>]</h1>
    </xsl:template>
</xsl:stylesheet>

error
Code:
could not find the variable with name of
a
Code:
 
Well, I cannot explain why it was not working. I reloaded the java and xalan, and it corrected the problem. Now, it works like the documentation describes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top