473,382 Members | 1,743 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,382 software developers and data experts.

Excel to Xml 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 23 '08 #1
0 1846

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.