Click here to Skip to main content
15,909,742 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Generalhelp rendering with xslt Pin
sonya987917-Aug-05 16:40
sonya987917-Aug-05 16:40 
GeneralPagination using XSL Pin
ramdhage16-Aug-05 0:43
ramdhage16-Aug-05 0:43 
QuestionHow to write xml tag in attribute value? Pin
Sachin Gedam15-Aug-05 20:56
Sachin Gedam15-Aug-05 20:56 
AnswerRe: How to write xml tag in attribute value? Pin
DavidNohejl16-Aug-05 0:41
DavidNohejl16-Aug-05 0:41 
GeneralDelegate remotable object Pin
jchsiung214-Aug-05 9:33
jchsiung214-Aug-05 9:33 
General"<" in an xml attribute Pin
eggie512-Aug-05 7:32
eggie512-Aug-05 7:32 
GeneralRe: &quot;&lt;&quot; in an xml attribute Pin
DavidNohejl14-Aug-05 9:42
DavidNohejl14-Aug-05 9:42 
Generalxsl:number- to get the sum of elements Pin
Eric_Franz11-Aug-05 20:16
Eric_Franz11-Aug-05 20:16 
Hey guys,
I'm new to xsl, however, I literally have spent a long time trying to simply get the sum of some element nodes. For example:

<Data>
<Books>
<Book Name="Endurance" />
<Book Name="Tommorow" />
<Book Name="Easy Money" />
</Books>
</Data>

I'm trying to use <xls:number> to get the sum of the 'Book' elements.

<xsl:template match="/">
<Count>
<xsl:number count="Data/Books/Book" />
</Count>
</xsl:template>

The output is merely:

<Count>
</Count>

Does anyone know why the count="PATTERN" isnt working?

-- modified at 16:18 Thursday 30th March, 2006
GeneralRe: xsl:number- to get the sum of elements Pin
Eric_Franz12-Aug-05 5:10
Eric_Franz12-Aug-05 5:10 
Generalxsl parameters Pin
Kazi Rameez10-Aug-05 1:26
Kazi Rameez10-Aug-05 1:26 
GeneralRe: xsl parameters Pin
Christian Graus10-Aug-05 18:37
protectorChristian Graus10-Aug-05 18:37 
GeneralRe: xsl parameters Pin
Kazi Rameez10-Aug-05 21:10
Kazi Rameez10-Aug-05 21:10 
GeneralXML Xpath OR Xquery using C# Pin
loki_l779-Aug-05 8:15
loki_l779-Aug-05 8:15 
GeneralRe: XML Xpath OR Xquery using C# Pin
Christian Graus10-Aug-05 18:38
protectorChristian Graus10-Aug-05 18:38 
GeneralUnicode in XML Pin
mukhopadhyay somenath9-Aug-05 4:35
professionalmukhopadhyay somenath9-Aug-05 4:35 
GeneralRe: Unicode in XML Pin
mukhopadhyay somenath10-Aug-05 1:05
professionalmukhopadhyay somenath10-Aug-05 1:05 
GeneralRe: Unicode in XML Pin
DavidNohejl14-Aug-05 9:49
DavidNohejl14-Aug-05 9:49 
GeneralXml Serialization Pin
David_cole9-Aug-05 2:30
David_cole9-Aug-05 2:30 
GeneralXSD to XML Pin
vinutha kempanna8-Aug-05 20:16
vinutha kempanna8-Aug-05 20:16 
QuestionHow to select a child element in an element by tag name? Pin
rushing8-Aug-05 17:44
rushing8-Aug-05 17:44 
AnswerRe: How to select a child element in an element by tag name? Pin
Christian Graus8-Aug-05 18:01
protectorChristian Graus8-Aug-05 18:01 
Questionstoring html in an xml file? Pin
matthias s.6-Aug-05 3:12
matthias s.6-Aug-05 3:12 
AnswerRe: storing html in an xml file? Pin
DavidNohejl6-Aug-05 3:38
DavidNohejl6-Aug-05 3:38 
QuestionIn vs.net system.xml, what is the diffirence of xmlnode and xmlelement? Pin
rushing5-Aug-05 1:04
rushing5-Aug-05 1:04 
AnswerRe: In vs.net system.xml, what is the diffirence of xmlnode and xmlelement? Pin
DavidNohejl7-Aug-05 3:21
DavidNohejl7-Aug-05 3:21 

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.