home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 June / CHIP_CD_2004-06.iso / bonus / buhgal / files / M12USWEB.exe / RCDATA / CABINET / money.cab / msmoney.chm / hhpreprocess.xsl < prev    next >
Extensible Markup Language  |  2003-06-18  |  2KB  |  46 lines

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3. <xsl:template match="/">
  4.     <xsl:element name="HTML" xmlns:mnyhelp="urn:schemas-microsoft-com:vml">
  5.         <xsl:element name="HEAD">
  6.             <xsl:element name="META"><xsl:attribute name="HTTP-EQUIV">imagetoolbar</xsl:attribute><xsl:attribute name="CONTENT">no</xsl:attribute></xsl:element>
  7.             <xsl:element name="TITLE"><xsl:value-of select="*/index/title" /></xsl:element>
  8.             <xsl:element name="SCRIPT">
  9.             <xsl:attribute name="TYPE">text/jscript</xsl:attribute>
  10.             <xsl:attribute name="LANGUAGE">JScript</xsl:attribute>
  11.             <xsl:attribute name="SRC">jsOnstart.js</xsl:attribute>
  12.             <xsl:comment/>
  13.             </xsl:element>
  14.             <SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
  15.             <xsl:comment>
  16.             <![CDATA[
  17.             Transformation                    = new ActiveXObject("Microsoft.XMLDOM");
  18.             Transformation.async              = false;
  19.             Transformation.validateOnParse    = false;
  20.             Transformation.resolveExternals   = false;
  21.             Transformation.preserveWhiteSpace = false;
  22.             Transformation.load("hhOnstart.xsl");
  23.             ]]>
  24.             </xsl:comment>
  25.             </SCRIPT>
  26.             <xsl:for-each select="//glossary">
  27.                 <xsl:if test="context()[index() $eq$ 0]">
  28.                     <SCRIPT TYPE="text/jscript" LANGUAGE="JScript">
  29.                     <xsl:comment>
  30.                     <![CDATA[
  31.                     GlossaryData                    = new ActiveXObject("Microsoft.XMLDOM");
  32.                     GlossaryData.async              = false;
  33.                     GlossaryData.validateOnParse    = false;
  34.                     GlossaryData.resolveExternals   = false;
  35.                     GlossaryData.preserveWhiteSpace = false;
  36.                     GlossaryData.load("dsGlossary.xml");
  37.                     ]]>
  38.                     </xsl:comment>
  39.                     </SCRIPT>
  40.                 </xsl:if>
  41.             </xsl:for-each>
  42.         </xsl:element>
  43.         <xsl:element name="BODY" />
  44.     </xsl:element>
  45. </xsl:template>
  46. </xsl:stylesheet>