Click here to Skip to main content
14,978,609 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Preventing and encrypting data from breaking Xml Structure Pin
Saksida Bojan12-Aug-09 23:24
MemberSaksida Bojan12-Aug-09 23:24 
QuestionWindows Forms Layout using Xml Pin
Devaang1110-Aug-09 20:52
MemberDevaang1110-Aug-09 20:52 
AnswerRe: Windows Forms Layout using Xml Pin
annathor10-Aug-09 21:11
Memberannathor10-Aug-09 21:11 
GeneralRe: Windows Forms Layout using Xml Pin
Devaang1110-Aug-09 21:31
MemberDevaang1110-Aug-09 21:31 
GeneralRe: Windows Forms Layout using Xml [modified] Pin
annathor10-Aug-09 21:48
Memberannathor10-Aug-09 21:48 
GeneralRe: Windows Forms Layout using Xml Pin
Devaang1110-Aug-09 23:45
MemberDevaang1110-Aug-09 23:45 
GeneralRe: Windows Forms Layout using Xml Pin
annathor11-Aug-09 0:26
Memberannathor11-Aug-09 0:26 
QuestionAdd up elements value by matching name element Pin
RossBradley10-Aug-09 11:49
MemberRossBradley10-Aug-09 11:49 
Hi - Any help or guidance would be appreciated. I am trying a new xml file with the total of one of the specific elements - below is the original xml file:
<Report>
	<Unit>
		<Name>t1</Name>
		<Price>32</Price>
		<Other>sdasd</Other>
	</Unit>
	<Unit>
		<Name>t1</Name>
		<Price>42</Price>
		<Other>dasdasd</Other>
	</Unit>
	<Unit>
		<Name>t2</Name>
		<Price>11</Price>
		<Other>asdas</Other>
	</Unit>
	<Unit>
		<Name>t3</Name>
		<Price>21</Price>
		<Other>dasd</Other>
	</Unit>
	<Unit>
		<Name>t1</Name>
		<Price>65</Price>
		<Other>dasda</Other>
	</Unit>


The xsl that I am trying to us is as follows: instead of giving me 1 value it gives me a list of all t1 values rather than a sumation

<test>
	<xsl:if test="Name = 't1'">
		<xsl:variable name="value1" select ="sum(Price)"/>
		<xsl:value-of select="$value1"/>
	</xsl:if>
</test>

thanks
AnswerRe: Add up elements value by matching name element Pin
Stuart Dootson10-Aug-09 21:58
professionalStuart Dootson10-Aug-09 21:58 
Questioncan i format xml file, suggestion please ? Pin
lazy_dude5-Aug-09 20:35
Memberlazy_dude5-Aug-09 20:35 
AnswerRe: can i format xml file, suggestion please ? Pin
annathor10-Aug-09 21:21
Memberannathor10-Aug-09 21:21 
GeneralRe: can i format xml file, suggestion please ? Pin
lazy_dude16-Aug-09 18:39
Memberlazy_dude16-Aug-09 18:39 
QuestionHelp Pin
MrMcIntyre1-Aug-09 4:54
MemberMrMcIntyre1-Aug-09 4:54 
AnswerRe: Help Pin
Mike Ellison1-Aug-09 10:52
MemberMike Ellison1-Aug-09 10:52 
AnswerRe: Help Pin
MrMcIntyre2-Aug-09 10:25
MemberMrMcIntyre2-Aug-09 10:25 
GeneralRe: Help Pin
Mike Ellison3-Aug-09 3:28
MemberMike Ellison3-Aug-09 3:28 
AnswerRe: Help Pin
Richard MacCutchan31-Aug-09 23:37
mveRichard MacCutchan31-Aug-09 23:37 
AnswerRe: Help - Further Information Pin
Richard MacCutchan1-Sep-09 5:47
mveRichard MacCutchan1-Sep-09 5:47 
QuestionHow to response XMl format using SOAP protocol Pin
Sasmi_Office30-Jul-09 22:55
MemberSasmi_Office30-Jul-09 22:55 
QuestionxmlTextWriter error Pin
newXMLdeveloper28-Jul-09 6:57
MembernewXMLdeveloper28-Jul-09 6:57 
QuestionRegarding the SOAP message Request and Response Pin
Sasmi_Office27-Jul-09 20:01
MemberSasmi_Office27-Jul-09 20:01 
Questioncreate xml .. [modified] Pin
Rajeshwar Code- Developer27-Jul-09 4:35
MemberRajeshwar Code- Developer27-Jul-09 4:35 
QuestionThe XML parse error 0xc00ce556 occurred on line number 1 Pin
Vimalsoft(Pty) Ltd24-Jul-09 0:59
professionalVimalsoft(Pty) Ltd24-Jul-09 0:59 
AnswerRe: The XML parse error 0xc00ce556 occurred on line number 1 Pin
DoctorMick24-Jul-09 1:17
MemberDoctorMick24-Jul-09 1:17 
GeneralRe: The XML parse error 0xc00ce556 occurred on line number 1 Pin
Vimalsoft(Pty) Ltd24-Jul-09 1:24
professionalVimalsoft(Pty) Ltd24-Jul-09 1:24 

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.