send parameter to XSL

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top