RE: [xsl] Inline StyleSheet in xsl

Subject: RE: [xsl] Inline StyleSheet in xsl
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 8 Oct 2003 21:57:59 +0100
> 
> How can I add an inline stylesheet to a xsl file.

Do you mean a CSS stylesheet? Include it the same way you include any
other literal text to be included in the output.
> 
> The xsl file contains html which am using to send emails.
> 
For example:

  <xsl:template name="css">
    <style type="text/css">
      <xsl:text>
code           { font-family: monospace; }

div.constraint,
div.issue,
div.note,
div.notice     { margin-left: 2em; }

li p           { margin-top: 0.3em;
                 margin-bottom: 0.3em; }
</xsl:text>
   </style>
  </xsl:template>

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread