[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XT, HTML, and &nsbp;

Subject: XT, HTML, and &nsbp;
From: Ray Waldin <rwaldin@xxxxxxxxxxx>
Date: Thu, 20 May 1999 20:00:48 -0700
nsbp
Hi all,

I'm using XT (Version 19990514) with Sun's Project X (Technology Release
1) to output HTML.  How can I print a literal "&nbsp;" to the output. 
I've noticed that XT expands character refences in the SCRIPT element's
contents.  Given any well-formed source tree:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
                xmlns="http://www.w3.org/TR/REC-html40"
                result-ns="">
  <xsl:template match="/">
    <HTML>
      <HEAD>
        <SCRIPT LANGUAGE="JAVASCRIPT">
          x = "this &amp; that";
          &amp;nbsp;
        </SCRIPT>
      </HEAD>
      <BODY>
        this &amp; that
        &amp;nbsp;
      </BODY>
    </HTML>
  </xsl:template>
</xsl:stylesheet>

produces:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JAVASCRIPT">
          x = "this & that";
          &nbsp;
        </SCRIPT>
</HEAD>
<BODY>
          this &amp; that
          &amp;nbsp;
        </BODY>
</HTML>

Is there some way to do the same for the BODY element or other HTML
elements?  Thanks!

-Ray



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.