473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Xml To Excel Conversion Using Xslt

Hello Friends
i want to convert xml shown under into excel file,xml is as


<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="AggrPositions.xsl"?>
<DataOut>
<NoName>
<AggregatedPosition>
<PositionReference>549</PositionReference>
<ProductIdentifier>DKK</ProductIdentifier>
<ProductDescription>DANISH KRONER</ProductDescription>
</AggregatedPosition>
<AggregatedPosition>
<PositionReference>575</PositionReference>
<ProductIdentifier>BG/ LN Equity</ProductIdentifier>
<ProductDescription>BG GROUP PLC</ProductDescription>
</AggregatedPosition>
</NoName>
<Personal_And_Household>
<AggregatedPosition>
<PositionReference>52</PositionReference>
<ProductIdentifier>BATS LN Equity</ProductIdentifier>
<ProductDescription>BRITISH AMERICAN TOBACCO</ProductDescription>
</AggregatedPosition>
</Personal_And_Household>
<Oil_Service>
<AggregatedPosition>
<PositionReference>27</PositionReference>
<ProductIdentifier>PRS NO Equity</ProductIdentifier>
<ProductDescription>PROSAFE ASA NOK10</ProductDescription>
</AggregatedPosition>
<AggregatedPosition>
<PositionReference>23</PositionReference>
<ProductIdentifier>AKSO NO Equity</ProductIdentifier>
<ProductDescription>AKER KVAERNER</ProductDescription>
</AggregatedPosition>
</Oil_Service>
<Utility>
<AggregatedPosition>
<PositionReference>405</PositionReference>
<ProductIdentifier>ENG SM Equity</ProductIdentifier>
<ProductDescription>ENAGAS</ProductDescription>
</AggregatedPosition>
<AggregatedPosition>
<PositionReference>527</PositionReference>
<ProductIdentifier>SXXP Index</ProductIdentifier>
<ProductDescription>DJ STOXX 600 = Pr EQUITY INDEX INDEX 0.0</ProductDescription>
</AggregatedPosition>
</Utility>
</DataOut>







i want to convert it into Excel using xslt


Excel format is as



Group PositionReference ProductIdentifier ProductDescription
NoName, 549 DKK DANISH KRONER
Personal_And_Household
Oil_Service
Utility


hhere group is NoName,Personal_And_Household,(tag containing aggregated positions) and rest is tagswithin AggregatedPosition




can any body give me xslt idea for my problem, any thing want to ask plz ask me on vikasthukral17@gmail.com



plz help out for my problem thanks in advance
Jul 24 '08 #1
0 2895

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jain, Pranay Kumar | last post by:
Hi All, We have created a simple application that takes a dataset and generates the data in Excel schema format. It uses an xslt file to do the transformation for excel 2002 and so on. We are...
2
by: solex | last post by:
Hello, Is there a way to develop a style sheet that runs on the client that will open the file in excel? Thanks, Dan
1
by: donjonnio via DotNetMonster.com | last post by:
Heres my problem: I am outputting XML from a dataset and using XSLT to format the output as HTML and the Response.ContentType = "application/vnd.ms-excel" directive to load the output as an...
2
by: noopathan | last post by:
Hi experts , I have an excel file in the below format --------------------------------------------------------------------- CodeID CodeName Market Name Date...
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
2
by: Ch Pravin | last post by:
Hi All: I am having the following xml which i need to convert to excel using xslt. Please help me out. Afghanistan.xml <?xml version="1.0" encoding="utf-16"?> <Languages...
1
by: =?Utf-8?B?R2xlbm4gR29tZXo=?= | last post by:
Does Office Excel 2000 support XSLT transformation of data from XML cause am having problem when the attachment is opened in the client side if the Excels version is in Office 2000 and also its...
0
by: vikasthukral17 | last post by:
Hello Friends i want to convert xml shown under into excel file,xml is as <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="AggrPositions.xsl"?> <DataOut> ...
0
by: sangam56 | last post by:
Hi all. I have successfully written xsl code to transform xml to excel file. I have also used css styles for excel using <ss:Styles>...</ss:Styles> inline in the xsl file. My requirement is write...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.