send parameter to XSL

  • Thread starter Thread starter Eli
  • Start date Start date
E

Eli

Hello.

I have an ASPX file. I want to transform my XML stored in file by XSL (from
file too). I successfully use the code below:

<asp:xml runat="server" id="myXMLTag" DocumentSource="myXML.xml"
TransformSource="myXSL.xslt" />

or

<asp:xml runat="server" id="myXMLTag" />

<script runat=server language="c#">
void Page_Load(Object sender, EventArgs e)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xmlPath);

XslTransform xslTr = new XslTransform();
xslTr.Load(xslPath);

myXMLTag.Document = xmlDoc;
myXMLTag.Transform = xslTr;
}

</script>


Now I must send the parameter to my XSL. How can I do it?

Thanx
Eli
 
Back
Top