Ignore:
Timestamp:
2012-04-11T20:08:17+12:00 (12 years ago)
Author:
ak19
Message:

Array of strings to be initialised for Javascript now done by Java code instead of XSLT. Intermediate step completed where header.xsl calls the Java code. The call to Java will still need to be moved into util.xsl from header.xsl. header.xsl should use a gslib:langfrag and so invoke util.xsl, but that doesn't work yet at present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/util.xsl

    r25280 r25347  
    677677    </a>
    678678  </xsl:template>
    679  
     679
     680  <!-- needs to be name=attrvalue else xsl:param -->
     681  <!-- call function with the name prefix (e.g. dse) and the file -->
     682  <xsl:template name="langfrag">
     683    <script type="text/javascript">     
     684      gs.text = new Array();
     685      gs.text.<xsl:value-of select="@name"/> = new Array();
     686      <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, @name, 'gs.text')"/>
     687    </script>
     688  </xsl:template>
     689
    680690</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.