Skip to Content
author's profile photo Former Member
Former Member

Preserving spaces in XSLT Mapping

Hi ,

My source structure has a field

<field1> aaaa1234</field1>

whens this field is transformed by using a XSLT mapping the output is as follows

<field1>aaaa1234</field1>

This output is visible in the interface mapping itself.

The leading spaces are truncated. Can any one suggest me on how to preserve leading spaces during XSLT mapping?

Thanks

VasS

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 08, 2006 at 02:26 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2006 at 02:27 PM

    hi,

    check if you don't have indent="no"

    if so it may delete the whitespaces

    Regards,

    michal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2006 at 02:41 PM

    Hi Vasagam,

    you can use xsl:preserve-space with the attribute elements as child of stylesheet.

    Regards,

    Udo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.