Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionHow to access XSL Variable or Param in c#? Pin
Abubakarsb22-Feb-07 4:16
Abubakarsb22-Feb-07 4:16 
AnswerRe: How to access XSL Variable or Param in c#? Pin
Pete O'Hanlon22-Feb-07 4:27
mvePete O'Hanlon22-Feb-07 4:27 
AnswerRe: How to access XSL Variable or Param in c#? Pin
Stefan Troschuetz22-Feb-07 4:29
Stefan Troschuetz22-Feb-07 4:29 
QuestionCall Method From External Process Pin
avictus22-Feb-07 4:15
avictus22-Feb-07 4:15 
AnswerRe: Call Method From External Process Pin
Judah Gabriel Himango22-Feb-07 4:50
sponsorJudah Gabriel Himango22-Feb-07 4:50 
AnswerRe: Call Method From External Process Pin
led mike22-Feb-07 4:50
led mike22-Feb-07 4:50 
QuestionHow to access XSL Vaiable in c#? Pin
Abubakarsb22-Feb-07 4:03
Abubakarsb22-Feb-07 4:03 
AnswerRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon22-Feb-07 4:34
mvePete O'Hanlon22-Feb-07 4:34 
In your xsl, you define a parameter with <xsl:param> and reference it with the $prefix.

So, suppose you wanted a MyName parameter, you would create it like this:
<xsl:param name="MyName" />


Then, you would reference it via:
<xsl:value-of select="$MyName" />


To reference this from your C#, you need to add parameters:
XsltArgumentList args = new XsltArgumentList();
args.AddParam("MyName", string.Empty, "John Doe");


These parameters are then added into the Xsl transform, then you will use:
xslt.Transform(xpathdoc, args, writer);



the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb22-Feb-07 4:51
Abubakarsb22-Feb-07 4:51 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon22-Feb-07 5:05
mvePete O'Hanlon22-Feb-07 5:05 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb22-Feb-07 10:21
Abubakarsb22-Feb-07 10:21 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon22-Feb-07 22:41
mvePete O'Hanlon22-Feb-07 22:41 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb22-Feb-07 23:53
Abubakarsb22-Feb-07 23:53 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon23-Feb-07 0:23
mvePete O'Hanlon23-Feb-07 0:23 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb23-Feb-07 2:35
Abubakarsb23-Feb-07 2:35 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon23-Feb-07 4:01
mvePete O'Hanlon23-Feb-07 4:01 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon26-Feb-07 4:47
mvePete O'Hanlon26-Feb-07 4:47 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb26-Feb-07 21:24
Abubakarsb26-Feb-07 21:24 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb28-Feb-07 10:13
Abubakarsb28-Feb-07 10:13 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon28-Feb-07 10:52
mvePete O'Hanlon28-Feb-07 10:52 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb1-Mar-07 2:08
Abubakarsb1-Mar-07 2:08 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon1-Mar-07 2:56
mvePete O'Hanlon1-Mar-07 2:56 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb1-Mar-07 3:09
Abubakarsb1-Mar-07 3:09 
GeneralRe: How to access XSL Vaiable in c#? Pin
Pete O'Hanlon1-Mar-07 4:01
mvePete O'Hanlon1-Mar-07 4:01 
GeneralRe: How to access XSL Vaiable in c#? Pin
Abubakarsb1-Mar-07 4:14
Abubakarsb1-Mar-07 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.