-
Notifications
You must be signed in to change notification settings - Fork 0
msa advance mwb export html
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>
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.
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.
In 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.
Copyright © 2003 - 2025 by Andrew Truckle. All Rights Reserved.
- Overview
- File Menu
- Tools Menu
- Database Menu
- Options Menu
- Help Menu
- Assignments Editor
-
Meeting Editor
- Overview
- Menus
- Sections
- Exporting Schedules
- Printing Schedules
- Foreign-Language Group mode
- Weekend Meeting Editor
- Notes and Images
- Sending S-89 Student Slips by Email
- Student Selector Window
- Swapping Assignments and Referencing Schedules
- Monthly Workbook Data - Volunteering
- Monthly Workbook Data - Validation
- Advanced Customization
-
Revision History
- Archived Revision History 24.0
- Archived Revision History 23.0
- Archived Revision History 22.0
- Archived Revision History 21.0
- Archived Revision History 20.0
- Archived Revision History 19.0
- Archived Revision History 18.0
- Archived Revision History 17.0
- Archived Revision History 16.0
- Archived Revision History 15.0 - 10.0
- Archived Revision History 9.0 and earlier
- Contacting Me