[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] VB 2008 Passing Parameter to XSLT 2.0


Subject: Re: [xsl] VB 2008 Passing Parameter to XSLT 2.0
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 10 Jul 2009 18:13:32 +0200

Knight, Michel wrote:

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="xhtml" >
<xsl:output method="xml" indent="yes" encoding="windows-1252"
exclude-result-prefixes="xhtml" ></xsl:output>
<xsl:strip-space elements="*"/>

<xsl:variable name="target"   select="target" />
<xsl:variable name="target1"   select="target1" />

You need to define global parameters, not variables e.g <xsl:param name="target"/> then your .NET code will set the value of those parameters.

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


Current Thread