SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: nbsp; in xsl?

  1. #1
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    nbsp; in xsl?

    Whats the correct way to display a nbsp in xsl?

    thanks

  2. #2
    SitePoint Zealot 19nine78's Avatar
    Join Date
    Feb 2002
    Location
    Ayr, scotland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    take a look at msdn

    either use &#160; or place <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>

    in your doctype or stylesheet.

    Strangely enough the generated html doesn't have a &nbsp; character in it, so this may not be the complete solution

    cheers

    alastair

  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this will do

    &#xA0; or &#160;
    <xslreserve-space>

    cheers for that


Bookmarks

Posting Permissions

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