Altova Mailing List Archives
>comp.text.xml Archive Home
>Thread Prev - Re: XSLT beginner's question
>Thread Next - Re: XSLT beginner's question
Re: XSLT beginner's question
Date: 9/8/2003 12:13:00 AM
Martin wrote: > > I would still like to understand the problem I had earlier when trying > to use a variable. I have stripped down my stlyesheet to the > following minimum skeleton : > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > > <xsl:output method="html"/> > <xsl:template match="/"> > <html> > <body> > <xsl:variable name="agentname" select="0"/> > </body> > </html> > </xsl:template> > </xsl:stylesheet> > > > I still get the error : "A reference to variable or parameter > 'agentname' cannot be resolved. The variable or parameter may not be > defined, or it may not be in scope". > > Can anyone enlighten me as to what I am doing wrong here, please? > Are you using *-PARAM agentname* as a command-line option?