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") "Гл. %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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Applying style to XML documents, Norman Walsh | Thread | Re: Applying style to XML documents, Norman Walsh |
Re: Quotes, Tony Graham | Date | RE: The DSSSList Digest V1 #255, WROTH, MARK B |
Month |