xsl-list
[Top] [All Lists]

RE: Inline StyleSheet in xsl

2003-10-08 13:57:59

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



<Prev in Thread] Current Thread [Next in Thread>