Re: [dssslist] Character entities in DSSSL stylesheet

Subject: Re: [dssslist] Character entities in DSSSL stylesheet
From: Karl Eichwalder <ke@xxxxxxxxxxxxxx>
Date: Fri, 02 Jul 2004 22:43:10 +0200
daniel lance herrick <dan.herrick@xxxxxxxxxxxxxxxx> writes:

> Somewhere in *all* the doctype declaration you are
> invoking there is a definition of the entity nbsp
> and the value of that entity expands to the empty
> string.

I don't think this way.  Check the posted code, there is a proper
reference to an entity definition.  instead of &nbsp; try &lt; or
&auml; -- all these entities expand to an empty string, but they are
define in my entity files.

> You may need to do it functionally, "emit"ing the
> literal text you want in your output.

Literal text does not work; e.g., the parser will eat all text between
<!-- and --> since the .dsl file is nothing more than a SGML document.
Cosider a code fragment like this:

(define (script-block)
  (make element gi: "script"
	attributes: '(("language" "JavaScript")
		      ("type" "text/javascript"))
	(literal "<!-- 
function newImgWindow(windowURL)
{
newFeatures='toolbar=0,status=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=480,height=760,top=0,left=480';
nwWin=window.open(winURL,'viewWindow',newFeatures);}
// -->")))


Also not working (check the entities &lt; and &gt; inside of the
"literal" form:

(define (script-block)
  (make element gi: "script"
	attributes: '(("language" "JavaScript")
		      ("type" "text/javascript"))
	(literal "&lt;!-- 
function newImgWindow(windowURL)
{
newFeatures='toolbar=0,status=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=480,height=760,top=0,left=480';
nwWin=window.open(winURL,'viewWindow',newFeatures);}
// --&gt;")))


-- 
                                                         |      ,__o
                                                         |    _-\_<,
http://www.gnu.franken.de/ke/                            |   (*)/'(*)

Current Thread