Re: Applying style to XML documents using an SGML stylesheet

Subject: Re: Applying style to XML documents using an SGML stylesheet
From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
Date: Fri, 13 Mar 1998 13:24:41 -0500 (EST)
At 13 Mar 1998 12:18 -0500, Norman Walsh wrote:
 > / ht@xxxxxxxxxxxxxxx (Henry S. Thompson) was heard to say:
 > | Norman Walsh <norm@xxxxxxxxxxxxx> writes:
 > | > 1. Is it possible to parse the stylesheet as an SGML instance
 > | > and the document as an XML instance? (Getting proper validation
 > | > in both cases.)
 > | > 
 > | > 2. On a related note, is it possible to parse the DSSSL
 > | > stylesheet with one SGML declaration and the input document with
 > | > another?
 > | 
 > | I haven't cracked this, so I've made a set of XML-compatible versions
 > | of the DSSSL style-sheet [use version and official version], which are
 > | what is distributed with XSLJ, so that you can set up your catalog for
 > | JADE to use the XML SGML declaration and invoke jade with -wno-valid
 > | -wxml.
 > 
 > Rats.  In that case the 1.08 stylesheets are really problematic
 > because they use parameter-entity controlled marked sections.
 > They do that because some languages use a bunch of character
 > entities and I wanted to make declaration of all those entities
 > optional (especially since they're all SDATA entities as
 > distributed by ISO).
 > 
 > Thoughts?

Make your stylesheet either more or less readable (depending on your
point of view) by replacing the entity references with DSSSL character
name references.  Taking a short example from dbl1ru.dsl:

    (("CHAPTER") "&Gcy;&lcy;. %n")

could be replaced by:

    (("CHAPTER") "\cyrillic-capital-letter-ghe;\cyrillic-small-letter-el;. %n")

Unfortunately for this idea, there are many longer strings, so you may
want to try some variation on:

    (("CHAPTER") (string
                  #\cyrillic-capital-letter-ghe
                  #\cyrillic-small-letter-el
                  #\.
                  #\space
                  #\%
                  #\n))

Regards,


Tony Graham
=======================================================================
Tony Graham
Mulberry Technologies, Inc.                         Phone: 301-315-9632
17 West Jefferson Street, Suite 207                 Fax:   301-315-8285
Rockville, MD USA 20850                 email: tgraham@xxxxxxxxxxxxxxxx
=======================================================================


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Applying style to XML documents using an SGML stylesheet
    • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA19273Thu, 12 Mar 1998 10:16:20 -0500 (EST)
      • Henry S. Thompson - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id GAA08586Fri, 13 Mar 1998 06:24:32 -0500 (EST)
        • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA13142Fri, 13 Mar 1998 12:21:07 -0500 (EST)
          • Tony Graham - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA14413Fri, 13 Mar 1998 13:27:46 -0500 (EST) <=
          • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA20558Sun, 15 Mar 1998 10:21:33 -0500 (EST)