Subject: Re: [dssslist] Character entities in DSSSL stylesheet|
From: daniel lance herrick <dan.herrick@xxxxxxxxxxxxxxxx>
Date: Fri, 2 Jul 2004 10:45:25 -0400 (EDT)
Looks to me like your two tests confirm my first assertion. 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. You may need to do it functionally, "emit"ing the literal text you want in your output. (I don't have my DSSSL standard here and it's been over a year....) On Fri, 2 Jul 2004, N. Raghavendra wrote: > At 2004-06-30T07:57:25-04:00, daniel lance herrick wrote: > > > Looks like is an entity whose value is the > > empty string. > > > > Defining it to be an entity whose value is > > " " would be one approach. > > Hi Dan, > > Thanks for your interest. > > If I put > > <!ENTITY nbsp " "> > <!ENTITY author "Fname Surname"> > > in the doctype of the stylesheet, I get the error message > > openjade:bar.dsl:18:41:E: entity "nbsp" is already open > > when I do > > openjade -t bar.dsl bar.sgml > > > Invoking another entity, as > > > > <!ENTITY author "Fname&nbsp;Surname"> > > > > (which would require that & be defined > > somewhere in the doctype) is another approach. > > Following this suggestion, in the doctype of the DSSSL stylesheet, I > put > > <!ENTITY amp "&"> > <!ENTITY author "Fname&nbsp;Surname"> > > and got the output "Fname&nbsp;Surname". What I am expecting is > "Fname Surname". > > Cheers, > Raghavendra. > > -- > N. Raghavendra <raghu@xxxxxxxxxxxx> | See mail headers for contact > Harish-Chandra Research Institute | and OpenPGP details.