Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 534477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:37:00+00:00 2026-05-13T09:37:00+00:00

I am using SSIS on SQL Server 2005, VS 2005 SP2. I have created

  • 0

I am using SSIS on SQL Server 2005, VS 2005 SP2.

I have created an XSLT to convert XML to CSV format. When I run this through XML Spy it works fine. I have configured an XML Task within and SSIS package to transform the XML file. Unfortunately, when SSIS performs the transform it does not include the CR/LF at the end of each record – I am left with a sigle line.

I have pased the XSLT below. Could anyone let me know why SSIS is ignoring the ?

I have also pasted a sample XML doc.

Many thanks,

Rob.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8"/>
<xsl:strip-space elements="*"/>
    <xsl:template match="/pptxn">
        <xsl:variable name="fileName" select="/pptxn/file_name"/>
        <xsl:variable name="sendingOrg" select="/pptxn/sending_org"/>
        <xsl:variable name="dateCreated" select="/pptxn/date_created"/>
        <xsl:variable name="timeCreated" select="/pptxn/time_created"/>
        <xsl:variable name="sequenceNumber" select="/pptxn/sequence_number"/>
        <xsl:text>FileName,SendingOrg,DateCreated,TimeCreated,SequenceNumber,PartnerNumber,PartnerOutletRef,CardAccountNumber,TransactionDate,TransactionTime,Spend,PartnerPoints,PartnerReference,PartnerPosId</xsl:text>
    <xsl:text>&#xD;</xsl:text>
        <xsl:for-each select="transaction">
            <xsl:value-of select="$fileName"/>,<xsl:value-of select="$sendingOrg"/>,<xsl:value-of select="$dateCreated"/>,<xsl:value-of select="$timeCreated"/>,<xsl:value-of select="$sequenceNumber"/>,<xsl:value-of select="partner_number"/>,<xsl:value-of select="partner_outlet_ref"/>,<xsl:value-of select="card_account_number"/>,<xsl:value-of select="transaction_date"/>,<xsl:value-of select="transaction_time"/>,<xsl:value-of select="spend"/>,<xsl:value-of select="partner_points"/>,<xsl:value-of select="partner_reference"/>,<xsl:value-of select="partner_pos_id"/>
            <xsl:text>&#xD;</xsl:text>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>

Now the XML –>

<?xml version="1.0" encoding="UTF-8"?>
<pptxn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Y:\PartnerPoints\XML\PointsPartnerRequest.xsd">
    <file_name>PPRequest.xml</file_name>
    <sending_org>1</sending_org>
    <date_created>20091121</date_created>
    <time_created>153421</time_created>
    <sequence_number>2</sequence_number>
    <transaction_count>3</transaction_count>
    <transaction>
        <partner_number>1</partner_number>
        <partner_outlet_ref>outlet ref 1</partner_outlet_ref>
        <card_account_number>1</card_account_number>
        <transaction_date>20091221</transaction_date>
        <transaction_time>091256</transaction_time>
        <spend>21.34</spend>
        <partner_points>40</partner_points>
        <partner_reference>shop x1</partner_reference>
        <partner_pos_id>pos id 1</partner_pos_id>
    </transaction>
    <transaction>
        <partner_number>2</partner_number>
        <partner_outlet_ref>outlet ref 2</partner_outlet_ref>
        <card_account_number>2</card_account_number>
        <transaction_date>20091222</transaction_date>
        <transaction_time>091257</transaction_time>
        <spend>21.35</spend>
        <partner_points>41</partner_points>
        <partner_reference>shop x2</partner_reference>
        <partner_pos_id>pos id 2</partner_pos_id>
    </transaction>
        <transaction>
        <partner_number>3</partner_number>
        <partner_outlet_ref>outlet ref 3</partner_outlet_ref>
        <card_account_number>3</card_account_number>
        <transaction_date>20091223</transaction_date>
        <transaction_time>091258</transaction_time>
        <spend>21.36</spend>
        <partner_points>42</partner_points>
        <partner_reference>shop x3</partner_reference>
        <partner_pos_id>pos id 3</partner_pos_id>
    </transaction>
</pptxn>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:37:00+00:00Added an answer on May 13, 2026 at 9:37 am

    I changed the char code from hex to decimal and now it works on SSIS 2005 🙂

    <xsl:text>&#13;&#10;</xsl:text>
    

    very strange…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 440k
  • Answers 440k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The maximum message size for emails in a qmail-installation is… May 15, 2026 at 5:20 pm
  • Editorial Team
    Editorial Team added an answer I only got one answer for you. It is Yii… May 15, 2026 at 5:20 pm
  • Editorial Team
    Editorial Team added an answer There are two hints in the API documentation for SetWindowPos.… May 15, 2026 at 5:20 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.