LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default xsl stylesheet formatting

For some reason when I export to excel using a xsl file, the numbers are not
coming out correctly. Here is the code:

<?xml version="1.0" encoding="UTF-8"?
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xdt="http://www.w3.org/2004/10/xpath-datatypes"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
<xsl:output method="text"/
<xsl:template match="/"Cusip
<xsl:for-each select="REPORT/POS/POS_ROW"
<xsl:text
</xsl:text
<xsl:value-of select="normalize-space(CUSIP)"/
</xsl:for-each
</xsl:template
</xsl:stylesheet


The Cusip should be 00000129 but it is coming out 129. All of the zeros
are getting surpressed. Any idea why? Thanks in advance for your help.
 
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
Importing XML using Stylesheet doesn't allow refreshing keith Excel Discussion (Misc queries) 0 December 10th 08 10:46 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM
Opening XML file with an XSL stylesheet Gary E. Excel Discussion (Misc queries) 3 January 28th 06 06:47 PM
Auto-generation of pivot table from XSL stylesheet Rob Pinion Excel Programming 0 May 20th 05 01:52 PM


All times are GMT +1. The time now is 03:34 AM.

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

About Us

"It's about Microsoft Excel"