Hi Berin, This does not work as testXSLT throws up an error with the quotes. I have tried:
... -PARAM Resort Blackpool - testXSLT runs but Blackpool does not get passed in ... -PARAM Resort 'Blackpool' - testXSLT runs but Blackpool does not get passed in ... -PARAM Resort "Blackpool" - testXSLT fails (Missing operator before 'Blackpool') ... -PARAM Resort "'Blackpool'" - testXSLT fails " -----Original Message----- From: Berin Lautenbach [mailto:[EMAIL PROTECTED] Sent: 16 March 2003 09:42 Cc: [email protected] Subject: Re: problems with PARAM and xsl:param Richard, Not intuitive until you think in the same way as you would in the style sheet :>. Try using the command line ... -PARAM Resort "'Blackpool'" (I think there is some stuff in the archives around this.) Cheers, Berin richard work wrote: > Hi, > > Excuse me if my stupidity shows but I have been trying to solve this problem > for the last 5 hours. I have a very simple cgi script that calls testXSLT > with " -PARAM Resort Blackpool". > Within the xsl file I have: > > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="html"/> > <xsl:param name="Resort" select="'none'"/> > ... > <xsl:template match="/"> > ... > <xsl:text>List of hotels in the operator's catalogue</xsl:text><br/> > <xsl:text>passed in parameter :- </xsl:text> > <xsl:value-of select="$Resort"/> > <xsl:text> so there</xsl:text> > ... > > The problem, $Resort never gets set to "Blackpool". In fact as the code is > laid out I don't even get "none" as the output. If I move the <xsl:param > ../> into the "/" template then I do get "none" but I still don't get > "Blackpool". > > How do I get -PARAM to work please! > > Regards, Richard > >
