Ignore:
Timestamp:
2008-07-17T23:31:26+12:00 (16 years ago)
Author:
davidb
Message:

More careful declaration of XSLT header information for produces XML, not HTML output. This is needed for the JAVA code that then takes some transformed code, parses it back in to a DOM (needs to be XML) and then does some final adjustments. When output was HTML, empty elements such as <script ../> could loose their closing />.

Location:
greenstone3/trunk/web/ui/xslt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/ui/xslt/library.xsl

    r16315 r16448  
    2727<xsl:variable name="js">
    2828 <xsl:for-each select="/page/pageResponse/jsFileList/jsFile">
    29     <script type="text/javascript" src="{@path}">&amp;</script>
     29    <script type="text/javascript" src="{@path}"><xsl:comment>IE needs to have an explicity start and end script tag.  This comment is here to ensure the end script tag does not get collapsed into a single open-close in one go element</xsl:comment></script>
    3030 </xsl:for-each>
    3131</xsl:variable>
  • greenstone3/trunk/web/ui/xslt/util.xsl

    r16315 r16448  
    2929<xsl:variable name="css">
    3030 <xsl:for-each select="/page/pageResponse/cssFileList/cssFile">
    31   <link rel="stylesheet" href="{@path}" type="text/css"/>
     31  <link rel="stylesheet" href="{@path}" type="text/css" />
    3232 </xsl:for-each>
    3333</xsl:variable>
Note: See TracChangeset for help on using the changeset viewer.