Click here to Skip to main content
16,005,491 members
Home / Discussions / C#
   

C#

 
GeneralRe: richText box uses to much CPU Pin
Snowjim10-May-05 2:32
Snowjim10-May-05 2:32 
GeneralRe: richText box uses to much CPU Pin
mav.northwind10-May-05 2:20
mav.northwind10-May-05 2:20 
General'System.NullReferenceException' inside an Array Pin
Vinnepin9-May-05 22:52
Vinnepin9-May-05 22:52 
GeneralRe: 'System.NullReferenceException' inside an Array Pin
S. Senthil Kumar9-May-05 23:28
S. Senthil Kumar9-May-05 23:28 
GeneralRe: 'System.NullReferenceException' inside an Array Pin
mav.northwind9-May-05 23:40
mav.northwind9-May-05 23:40 
QuestionHow to unzip file whith C#??? Pin
Anonymous9-May-05 22:50
Anonymous9-May-05 22:50 
AnswerRe: How to unzip file whith C#??? Pin
Dan_P9-May-05 23:06
Dan_P9-May-05 23:06 
Generalhelp.about use xsl in C# Pin
dagco9-May-05 22:02
dagco9-May-05 22:02 
Hi,everyone.
Recently,I transform a XML document using a xsl document in a project.I use
"document('')" to replace self.when I program by c#,I find it couldn't work .The XPATH word about "document('')" isn't explain,the c# word is
xslt.Transform(nav, null, s, null);
This is my xml
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="viewer.xsl" ?>
<resultset>
<result>
<custname>Tom</custname>
<sex>2</sex>
<addr2>dfd</addr2>
<addr1>dff</addr1>
<customerid>145f3444-302f-407b-b6d5-c8aeaee9b253</customerid>
</result>
<result>
<custname>John</custname>
<sex>2</sex>
<addr2>ddd</addr2>
<addr1>sss</addr1>
<customerid>9099cc4d-ef82-47e6-ab3b-7b2c7d091a55</customerid>
</result>
</resultset>

This is my xsl ,it is in Cache
<?xml version="1.0" encoding="utf-8" ?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:map="maps.uri">
<xsl:template match="/resultset">&lt;resultset&gt;<xsl:apply-templates />
&lt;&#47;resultset&gt;
</xsl:template><xsl:template match="result">&lt;result&gt;<xsl:for-each select="*">
<xsl:variable name='atrname' select='name()'/><xsl:variable name='atrvalue' select='text()'/>
&lt;
<xsl:value-of select='$atrname'/>
<xsl:if test="document('')/xsl:transform/map:stringmap[AttributeName=$atrname and AttributeValue=$atrvalue]/value!=''">
name="<xsl:value-of select="document('')/xsl:transform/map:stringmap[AttributeName=$atrname and AttributeValue=$atrvalue]/value" />"
</xsl:if>
&gt;
<xsl:value-of select='$atrvalue'/>
&lt;&#47;
<xsl:value-of select='$atrname'/>
&gt;
</xsl:for-each>
&lt;&#47;result&gt;
</xsl:template>
<map:stringmap>
<AttributeName>sex</AttributeName>
<AttributeValue>1</AttributeValue>
<value>M</value>
</map:stringmap>
<map:stringmap>
<AttributeName>sex</AttributeName>
<AttributeValue>2</AttributeValue>
<value>F</value>
</map:stringmap>
</xsl:transform>

I want get the 'value''s value from the xsl if it can meet my need;It word well in IE.

What can I do ?
QuestionHow to get table names and relations in oracle database? Pin
oohungoo9-May-05 22:01
oohungoo9-May-05 22:01 
GeneralOpen a Word/Excel document without saving! Pin
fatihsen9-May-05 22:01
fatihsen9-May-05 22:01 
Generala problem with DataGrid Pin
inew9-May-05 20:58
inew9-May-05 20:58 
GeneralRe: a problem with DataGrid Pin
esjq9-May-05 23:47
esjq9-May-05 23:47 
GeneralPassing a listbox to a method. Pin
Anonymous9-May-05 19:58
Anonymous9-May-05 19:58 
GeneralRe: Passing a listbox to a method. Pin
Heath Stewart9-May-05 21:21
protectorHeath Stewart9-May-05 21:21 
GeneralPowerStatus() Pin
victor_ba859-May-05 18:04
victor_ba859-May-05 18:04 
GeneralRe: PowerStatus() Pin
Christian Graus9-May-05 18:18
protectorChristian Graus9-May-05 18:18 
GeneralRe: PowerStatus() Pin
Heath Stewart9-May-05 21:29
protectorHeath Stewart9-May-05 21:29 
Question&quot;Setup-Wizard-like&quot; layout manager in C# ? Pin
erajsri9-May-05 18:02
erajsri9-May-05 18:02 
AnswerRe: &quot;Setup-Wizard-like&quot; layout manager in C# ? Pin
Christian Graus9-May-05 18:15
protectorChristian Graus9-May-05 18:15 
GeneralRe: &quot;Setup-Wizard-like&quot; layout manager in C# ? Pin
ChesterPoindexter10-May-05 2:53
professionalChesterPoindexter10-May-05 2:53 
GeneralRe: &quot;Setup-Wizard-like&quot; layout manager in C# ? Pin
Christian Graus10-May-05 12:53
protectorChristian Graus10-May-05 12:53 
AnswerRe: &quot;Setup-Wizard-like&quot; layout manager in C# ? Pin
ChesterPoindexter10-May-05 17:00
professionalChesterPoindexter10-May-05 17:00 
GeneralRe: &quot;Setup-Wizard-like&quot; layout manager in C# ? Pin
erajsri10-May-05 19:31
erajsri10-May-05 19:31 
GeneralReading an Xml file into a jagged array need help Pin
OnlyTaz9-May-05 17:03
OnlyTaz9-May-05 17:03 
GeneralRe: Reading an Xml file into a jagged array need help Pin
Christian Graus9-May-05 17:08
protectorChristian Graus9-May-05 17:08 

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.