Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > XSLForum: Main > XSL Coding General

Tags: ,



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-06-2008, 12:23 AM
Junior Member
 
Join Date: Sep 2008
Posts: 1

Default Defining data types in XSL



Using an XSL file as a transform definition file, I am attempting import an XML file into MS Access. In the XSL file, I dynamically create an additional tag named 'Key' that is used to hold the position number. The problem is that when I import the XML file with the XSL file as the transform, the column 'Key' gets defined as a data type of Text. I want it to be an integer data type. Is there a way to cause MS Access to create this column with the data type as integer?
XML file:
<Records>
<Record>
<Name>Some Name</Name>
</Record>
</Records>

XSL file:
<xsl:template match="Records">
<html>
<body>
<table>
<xsl:apply-templates select="Record"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="Record">
<Record>
<Key>
<xsl:number value="position()"/>
</Key>

<Name>
<xsl:value-of select="Name"/>
</Name>
</Record>
</xsl:template>
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 09:43 PM.
Style Developed by Epic Designz