CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2001
    Location
    Chandigarh, India
    Posts
    132

    Replacement of  

    Hi

    I am a beginner to XML. I was trying to use   in XSLT. But XSLT does not support  . What should I use to put a space in XSLT.

    Thanks in advance

    Amit

  2. #2
    Join Date
    Aug 2001
    Location
    Russia, Moscow
    Posts
    26
    In any XML if you want to preserve space you should use the attribute xml:space="preserve"

    <aaa xml:space="preserve"> </aaa>

    The same with XSL:

    <xsl:element name="aaa" xml:space="preserve"> -same spaces- <xsl:apply-templates select="*"/></xsl:element>
    Denis.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured