Sorry,
I am lost. This is my first XSL file. Inside my XSL file I have
something like this:
<xsl:element name="loc">
<xsl:text>HERE</xsl:text>
<xsl:value-of select="substring(@url, 3)"/>
</xsl:element>
What I want is to be able to change HERE to something else.
For this I tried to add the MyParameter as I described.
I set the parameter value in my VB.NET code on my Asp.Net web site.
I do that when I run a function to transform the XML file using the XSL
file.
Was this what you asked me?
Sorry, but I am just starting with XSL and XML.
Thanks,
Miguel
Martin Honnen wrote:
shapper wrote:
Inside my XSL file I have the following:
<xsl:element name="loc">
<xsl:value-of select="$MyParameter" />
<xsl:value-of select="substring(@url, 3)"/>
</xsl:element>
In line <xsl:value-of select="$MyParameter" /I get an error saying:
The value of parameter MyParameter is either not defined or it is out
of scope.
So where you you have an
<xsl:param name="$MyParameter"/>
and where do you set its value (either from the outside if the param is
global or with an <xsl:with-param name="$MyParameter"
select="XPathexpression"/>)?
--
Martin Honnen
http://JavaScript.FAQTs.com/