HttpContext XML values in XSLT

Posted by Siva on Stack Overflow See other posts from Stack Overflow or by Siva
Published on 2010-06-07T10:31:28Z Indexed on 2010/06/07 10:42 UTC
Read the original article Hit count: 238

Filed under:
|
|

Hi all. Please Help me out.

In C# i set a context value as

HttpContext.Current.Items["xmlcontentholder"] = xDoc.DocumentElement.FirstChild.OuterXml;

and

by processing XsltArgumentList i send it to an XSLT file:

XsltArgumentList XsltArgs = new XsltArgumentList();
XsltArgs.AddParam("xmlcontentholder", "", "xmlcontent");

and i m transforming it

xsltCompiledTrans.Transform(xPathNav, XsltArgs, stringWriter);

In XSLT file i gave as <xsl:value-of select="$xmlcontentholder" /><br/>12<xsl:value-of select="msxsl:node-set($xmlcontentholder)/ROW[1]/value" />34

My output is

<ROW><value>1</value><value>2</value></ROW>
1234

Please explain me on this problem..

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml