Re: [dssslist] Deriving stylesheet from derived stylesheet

Subject: Re: [dssslist] Deriving stylesheet from derived stylesheet
From: Tuukka Mäkinen <tukem@xxxxxx>
Date: Thu, 03 Mar 2005 00:45:50 +0200
Srdjan Sobajic wrote:
---- Lot of stuff removed ----

Is it possible to derive the stylesheets in such a way to get both
HTML and Print capability in the same stylesheet?

Could you use the alternative way mentioned in the link you gave? I mean using <![%print; [ and ]]>.




<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % html "IGNORE">
<!ENTITY % print "IGNORE">

<![ %html;[
<!ENTITY parent-stylesheet SYSTEM "../html/docbook.dsl" CDATA DSSSL>
]]>

<![ %print; [
<!ENTITY parent-stylesheet SYSTEM "../print/docbook.dsl" CDATA DSSSL>
]]>
]>

<style-sheet>
  <style-specification use="docbook">
    <style-specification-body>
<![ %output.html; [     <!-- HTML specific customisations -->

]]>

<![ %output.print; [ <!-- Print specific customisations -->

]]>

<!-- Non-specific customisations -->

    </style-specification-body>
  </style-specification>
  <external-specification id="docbook" document="parent-stylesheet">
</style-sheet>


-Tuukka Mdkinen


Current Thread