Exporting the schedule to HTML is a straightforward process if you are using any of the built-in templates.

But, there are some things you need to be aware of if you are using a customized template or your own template.

Example:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
  <xsl:param name="CSSFile1"></xsl:param>
  <xsl:template match="/">
    <html>
      <xsl:attribute name="lang">
        <xsl:value-of select="//Settings//LanguageCode"/>
      </xsl:attribute>
      <xsl:attribute name="dir">
        <xsl:value-of select="//Settings/Direction"/>
      </xsl:attribute>
      <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <xsl:choose>
          <xsl:when test="$CSSFile1 !=''">
            <style type="text/css">
              <xsl:value-of select="$CSSFile1"/>
            </style>
          </xsl:when>
          <xsl:otherwise>
            <link rel="stylesheet" type="text/css" href="Workbook-S-140.css"/>
          </xsl:otherwise>
        </xsl:choose>

Step 1

Two things to note from the example above:

  <xsl:param name="CSSFile1"></xsl:param>

This is a list of parameters for all of the CSS style-sheets you are using in your script. So if your template use two stylesheets, it would look like this:

  <xsl:param name="CSSFile1"></xsl:param>
  <xsl:param name="CSSFile2"></xsl:param>

Just replace the line and sequentially number CSSFile.

Step 2

You would then adjust the choose logic if your template uses two style sheets. Example:

<xsl:choose>
    <xsl:when test="$CSSFile1 !='' and $CSSFile2 !=''">
    <style type="text/css">
        <xsl:value-of select="$CSSFile1"/>
        <xsl:value-of select="$CSSFile2"/>
    </style>
    </xsl:when>
    <xsl:otherwise>
        <link rel="stylesheet" type="text/css" href="Workbook-S-140.css"/>
        <link rel="stylesheet" type="text/css" href="Workbook-S-140-Extra.css"/>
    </xsl:otherwise>
</xsl:choose>

You only need to make the above changes if you are using a customized script. If you are not sure then please contact me.

Note IconIn addition, you need to make sure that you include the path to the CSS file so that it can be found. This is important if the HTML file is in a different folder. The same principle applies for Assignment Slips where they use images.