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

C#

 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 6:20
malharone6-Feb-06 6:20 
GeneralRe: Weird C# String Behavior Pin
Daniel Grunwald6-Feb-06 6:55
Daniel Grunwald6-Feb-06 6:55 
GeneralNoooo! Pin
leppie6-Feb-06 7:49
leppie6-Feb-06 7:49 
QuestionWierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 4:22
ByStorm Software6-Feb-06 4:22 
AnswerRe: Wierdness trying to use a class library in a service Pin
Joe Woodbury6-Feb-06 4:54
professionalJoe Woodbury6-Feb-06 4:54 
AnswerRe: Wierdness trying to use a class library in a service Pin
leppie6-Feb-06 7:57
leppie6-Feb-06 7:57 
GeneralRe: Wierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 9:48
ByStorm Software6-Feb-06 9:48 
QuestionXsltArgumentList doesn't accept long parameter values Pin
mikko laanti6-Feb-06 4:21
mikko laanti6-Feb-06 4:21 
I have problems passing parameters from C# application to XSL file and doing a transformation.
My code is below.:

XsltArgumentList xslArg = new XsltArgumentList();

String key = "grandpa/father/son"; // This is the name of node I want pass and gets it value
xslArg.AddParam("xslParam", "", key);

// Create the XslTransform and load the stylesheet.
XslTransform xslt = new XslTransform();
xslt.Load(stylesheet); // xsl stylesheet

XmlUrlResolver xmlUrlResolver = new XmlUrlResolver();

// Output to console.
XmlTextWriter writer = new XmlTextWriter(Console.Out);

// Transform the xml file
xslt.Transform(new XPathDocument(filename), xslArg, writer, xmlUrlResolver);

writer.Close();

----------------

XSL file looks like this


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="xslParam"/>
<xsl:template match="/">
<alku><xsl:value-of select="$xslParam"/></alku>
</xsl:template>
</xsl:stylesheet>


The problem is that node grandpa/father/son is not executed! It's passed to XSL file
but XslTransform classes transsform method does not fetch it's value from xml file.
It only shows the key value in console. Node grandpa/father/son has value in it's
xml file.

So, am I missing something or is there a bug in XsltArgumentList and it's transformation.

Has anyone any ideas what could be wrong?

Cheers!


AnswerRe: XsltArgumentList doesn't accept long parameter values Pin
leppie6-Feb-06 5:21
leppie6-Feb-06 5:21 
QuestionAdd to favourites Pin
Brendan Vogt6-Feb-06 3:51
Brendan Vogt6-Feb-06 3:51 
Questionstatus bar Pin
Kola Sokol6-Feb-06 3:41
Kola Sokol6-Feb-06 3:41 
AnswerRe: status bar Pin
Ravi Bhavnani6-Feb-06 4:04
professionalRavi Bhavnani6-Feb-06 4:04 
GeneralRe: status bar Pin
Kola Sokol6-Feb-06 5:06
Kola Sokol6-Feb-06 5:06 
Questionmemcopy in C# ? Pin
smoitry6-Feb-06 3:28
smoitry6-Feb-06 3:28 
AnswerRe: memcopy in C# ? Pin
Judah Gabriel Himango6-Feb-06 4:58
sponsorJudah Gabriel Himango6-Feb-06 4:58 
QuestionHelp with multiview control needed!! Pin
BenPage6-Feb-06 2:07
BenPage6-Feb-06 2:07 
Questionbit + sq Pin
ita_cas6-Feb-06 1:48
ita_cas6-Feb-06 1:48 
AnswerRe: bit + sq Pin
albCode6-Feb-06 2:01
albCode6-Feb-06 2:01 
Questioncombo box, datagrid problem Pin
steve1_rm20006-Feb-06 1:31
steve1_rm20006-Feb-06 1:31 
QuestionHow to create RadioButtonColumn for DataGridView Pin
USrinivas6-Feb-06 1:17
USrinivas6-Feb-06 1:17 
AnswerRe: How to create RadioButtonColumn for DataGridView Pin
luckyv6-Feb-06 3:03
luckyv6-Feb-06 3:03 
GeneralRe: How to create RadioButtonColumn for DataGridView Pin
USrinivas6-Feb-06 23:53
USrinivas6-Feb-06 23:53 
QuestionMS SQL 2000 Server usage Pin
cbhkenshin6-Feb-06 1:01
cbhkenshin6-Feb-06 1:01 
AnswerRe: MS SQL 2000 Server usage Pin
usernamed6-Feb-06 9:21
usernamed6-Feb-06 9:21 
QuestionLooking for a "best practice" advice Pin
Jan R Hansen6-Feb-06 0:43
Jan R Hansen6-Feb-06 0:43 

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.