RE: [dssslist] Character entities in DSSSL stylesheet

Subject: RE: [dssslist] Character entities in DSSSL stylesheet
From: "N. Raghavendra" <raghu@xxxxxxxxxxxx>
Date: Fri, 2 Jul 2004 18:33:50 +0530
At 2004-06-30T07:57:31-04:00, Maltby, David G wrote:

> I forgot to ask: Is the ENTITY author declared in your Docbook
> document or your DSSSL document?

Hi David,

Yes, I did.  Below is a sample SGML file, and a DSSSL stylesheet.

The command I used was

  openjade -t sgml -d foo.dsl foo.sgml

I got "FnameSurname: This is the author." in the HTML output.



<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.2//EN">

  <para>This is the author.</para>


<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"
  <!ENTITY docbook.dsl
           PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN"
           CDATA DSSSL>

  <!ENTITY % ISOnum.ent
    PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN">

  <!ENTITY author "Fname&nbsp;Surname">

<style-specification use="docbook">

(element (article para)
  (make element gi: "P"
        (literal (string-append "&author;:\space;" (data (current-node))))))

<external-specification id="docbook" document="docbook.dsl">

N. Raghavendra <raghu@xxxxxxxxxxxx> | See mail headers for contact
Harish-Chandra Research Institute   | and OpenPGP details.

Current Thread