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





Reply via email to