|
Subject: Re: (dsssl) Include some defines? From: Jany Quintard <jany.quintard@xxxxxxx> Date: Wed, 19 Mar 2003 17:47:02 +0100 |
* Tim McDaniel [Tue, 18/03/2003 at 21:36 -0600]
> In my Jade .dsl file, I hve several style-specification blocks. I am
> developing more defines that are used in different blocks. I would
> like to cut down on the maintenance effort by having one copy of each
> define instead of several. I could do a simple include mechanism,
> even in command.com in Windows:
I use this:
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"
[
<!ENTITY intro PUBLIC "-//MYSELF//DOCUMENT cover and intro//EN" CDATA DSSSL>
<!ENTITY layout PUBLIC "-//MYSELF//DOCUMENT print layout//EN" CDATA DSSSL>
<!ENTITY txtdef PUBLIC "-//MYSELF//DOCUMENT text layout//EN" CDATA DSSSL>
<!ENTITY page PUBLIC "-//MYSELF//DOCUMENT page layout//EN" CDATA DSSSL>
<!ENTITY colors PUBLIC "-//MYSELF//DOCUMENT Colors for printed docs//EN" CDATA DSSSL>
<!ENTITY NLS PUBLIC "-//MYSELF//DOCUMENT NLS processing//EN" CDATA DSSSL>
]
>
<!--
#$Id: impr00.dsl,v 1.5 2003/01/24 14:52:38 jqd Exp $
#$Name: $
-->
<style-specification use="
intro
layout
txtdef
page
colors
NLS
">
.../..
;; Here my rules
i.../...
</style-specification>
<external-specification id="intro" document="intro">
<external-specification id="txtdef" document="txtdef">
<external-specification id="layout" document="layout">
<external-specification id="page" document="page">
<external-specification id="colors" document="colors">
<external-specification id="NLS" document="NLS">
The files, here referred to as PUBLIC, contain defines, which can be
shared this way.
I believe this is the canonical way to include defines and functions in
a stylesheet.
Jany
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: (dsssl) Include some defines?, Holger Klawitter | Thread | (dsssl) Setting font size for heade, Tim McDaniel |
| Re: (dsssl) Include some defines?, Holger Klawitter | Date | (dsssl) Setting font size for heade, Tim McDaniel |
| Month |