This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Proper xsl coding for  ?


Brad,

Declare an !Entity that aliases   to output the unicode codepoint 160.

<?xml version="1.0">
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
  <!--
    The you can use a meaningful representation of the whitespace entity 
    within your stylesheet.
  -->

<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

   <xsl:template match="test-nbsp">Hello World!&nbsp;&nbsp;Check out my cool
whitespaces!</xsl:template>

</xsl:stylsheet>


-Jeff


-----Original Message-----
From: Brad Cox [mailto:bcox@virtualschool.edu]
Sent: Sunday, February 10, 2002 1:22 PM
To: xsl-list@lists.mulberrytech.com
Cc: Joerg Pietschmann
Subject: [xsl] Proper xsl coding for &nbsp;?


Sorry for the repeat question. Saw this posted a few days back but 
deleted it somehow. And searching the archives for nbsp gives too 
many hits to be useful.

What is the proper way to write &nbsp; and its html friends in xsl
documents?
-- 
Brad Cox, Ph.D.; bcox@virtualschool.edu 703 361 4751
For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
Java Web Application Architecture: http://virtualschool.edu/jwaa



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]