Click here to Skip to main content
16,005,281 members
Home / Discussions / XML / XSL
   

XML / XSL

 
General<fo:bookmark> problem Pin
dotnetquery22-Feb-05 23:47
dotnetquery22-Feb-05 23:47 
Generalbackground-color problem Pin
dotnetquery22-Feb-05 18:12
dotnetquery22-Feb-05 18:12 
GeneralParsing problem in msxml4 Pin
R_K22-Feb-05 16:42
R_K22-Feb-05 16:42 
GeneralAbout xerces parser. Pin
crazzycat22-Feb-05 14:10
crazzycat22-Feb-05 14:10 
GeneralXerces getXML method Pin
4apai21-Feb-05 4:16
4apai21-Feb-05 4:16 
GeneralRe: Xerces getXML method Pin
crazzycat21-Feb-05 20:16
crazzycat21-Feb-05 20:16 
GeneralRe: Xerces getXML method Pin
4apai22-Feb-05 0:09
4apai22-Feb-05 0:09 
GeneralPrint Values in XSLT Pin
dotnetquery20-Feb-05 18:39
dotnetquery20-Feb-05 18:39 
I have an XML File:

<ROOT>
<CAR Name="Maruti">
<SALES Year="2000">10</SALES>
<SALES Year="2001">11</SALES>
<SALES Year="2002">9</SALES>
<SALES Year="2004">8</SALES>
</CAR>
<CAR Name="Fort">
<SALES Year="2000">8</SALES>
<SALES Year="2002">7</SALES>
<SALES Year="2003">6</SALES>
<SALES Year="2004">9</SALES>
</CAR>
<CAR Name="Mercedes">
<SALES Year="2000">2</SALES>
<SALES Year="2001">4</SALES>
<SALES Year="2003">6</SALES>
<SALES Year="2004">3</SALES>
</CAR>
</ROOT>

Now I want to print the sales of each car Year wise in a tabular format. Something like a pivot table. If the car does not have sales for a particular year, it should display blank space. The output should be in the format like:

Maruti Fort Mercedes
2000 10 8 2
2001 11 - 4
2002 9 7 -
2003 - 6 6
2004 8 9 3

I am not able to print the values particularly. Please help.
GeneralRe: Print Values in XSLT Pin
Phil Hobgen21-Feb-05 10:32
Phil Hobgen21-Feb-05 10:32 
GeneralRe: Print Values in XSLT Pin
dotnetquery21-Feb-05 20:59
dotnetquery21-Feb-05 20:59 
GeneralA beginner question Pin
RockRock20-Feb-05 3:29
RockRock20-Feb-05 3:29 
GeneralRe: A beginner question Pin
Phil Hobgen20-Feb-05 6:53
Phil Hobgen20-Feb-05 6:53 
GeneralRe: A beginner question Pin
RockRock20-Feb-05 19:00
RockRock20-Feb-05 19:00 
GeneralRe: A beginner question Pin
Phil Hobgen20-Feb-05 20:08
Phil Hobgen20-Feb-05 20:08 
GeneralRe: A beginner question Pin
RockRock20-Feb-05 22:33
RockRock20-Feb-05 22:33 
GeneralXMI Pin
CSharpBala18-Feb-05 5:24
CSharpBala18-Feb-05 5:24 
GeneralRe: XMI Pin
Phil Hobgen20-Feb-05 7:14
Phil Hobgen20-Feb-05 7:14 
GeneralRe: XMI Pin
CSharpBala24-Feb-05 3:24
CSharpBala24-Feb-05 3:24 
GeneralIXMLDOMSchemaCollectionPtr-&gt;add() Pin
bandonet17-Feb-05 3:46
bandonet17-Feb-05 3:46 
GeneralXSLT Question Pin
dotnetquery16-Feb-05 22:15
dotnetquery16-Feb-05 22:15 
GeneralRe: XSLT Question Pin
Phil Hobgen20-Feb-05 8:56
Phil Hobgen20-Feb-05 8:56 
QuestionHow do I add a DOCTYPE declaration in XML using MSXML in Visual C++? Pin
IronMike16-Feb-05 21:38
IronMike16-Feb-05 21:38 
AnswerRe: How do I add a DOCTYPE declaration in XML using MSXML in Visual C++? Pin
Phil Hobgen21-Feb-05 10:45
Phil Hobgen21-Feb-05 10:45 
GeneralProcessing Instruction Pin
johnsaxton14-Feb-05 8:53
johnsaxton14-Feb-05 8:53 
GeneralRe: Processing Instruction Pin
Phil Hobgen14-Feb-05 23:13
Phil Hobgen14-Feb-05 23:13 

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.