xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

XT, HTML, and &nsbp;


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

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor