Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Importing XML with XSL into Excel fails

Hi,
I am trying to open following XML file ab.xml into Excel 2003/2007 which
gives following error

Required attribute '{http://www.w3.org/1999/XSL/Transform}version' is missing.

Am I missing anything? please help.

Following are the contents of ab.xml file which contains XSL to Transform
data into worksheets.

<?xml version="1.0"?
<?xml-stylesheet version="1.0" href="#exportstyle" type="text/xsl"?
<!DOCTYPE NewDataSet [
<!ATTLIST xsl:stylesheet
id ID #REQUIRED
]
<NewDataSet
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
id="exportstyle"
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
<xsl:template match="xsl:stylesheet"/
<xsl:template match="NewDataSet"
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40"
<Worksheet
<xsl:attribute name="ss:Name"Login</xsl:attribute
<Table
<xsl:apply-templates select="NewDataSet"/
<Row
<Cell
<Data ss:Type="String"ContentKey</Data
</Cell
<Cell
<Data ss:Type="String"LocalizedContent</Data
</Cell
</Row
<xsl:for-each select="Login"
<Row
<Cell
<Data ss:Type="String"
<xsl:value-of select="ContentKey"/
</Data
</Cell
<Cell
<Data ss:Type="String"
<xsl:value-of select="LocalizedContent"/
</Data
</Cell
</Row
</xsl:for-each
</Table
</Worksheet
</Workbook
</xsl:template
</xsl:stylesheet
<Login
<ContentKeyDatabase</ContentKey
<LocalizedContentDatabase**</LocalizedContent
</Login
<Login
<ContentKeyHeaderText</ContentKey
<LocalizedContentCMT Login12</LocalizedContent
</Login
</NewDataSet



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel formula fails to update barry Excel Discussion (Misc queries) 1 September 17th 06 12:44 PM
Excel fails to save ChrisH Excel Discussion (Misc queries) 3 January 6th 06 01:30 PM
excel fails to launch NFEI Excel Discussion (Misc queries) 3 October 31st 05 08:13 PM
Excel Template fails to open??? Rob Smith Excel Discussion (Misc queries) 2 April 11th 05 06:42 PM
Excel Fails when add-in is selected Ron Excel Worksheet Functions 0 March 14th 05 12:18 AM


All times are GMT +1. The time now is 02:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"