Ignore:
Timestamp:
2012-04-17T19:57:53+12:00 (12 years ago)
Author:
ak19
Message:

gslib:langfrag used directly in document.xsl and documentbasket.xsl which used to call the document-editor-language-fragments template before, which itself then called gslib:langfrag. However, since gslib statements are expanded only once by TransformingReceptionist.java, the 2 document xsl files in the pages folder call gslib:langfrag directly now.

File:
1 edited

Legend:

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

    r25378 r25398  
    678678  </xsl:template>
    679679
    680   <!-- call function with the name prefix (e.g. dse) -->
     680
     681  <!-- This next template expands gslib:langfrag.
     682       When debugging with o=skinandlibdoc, it's seen that <gslib:langfrag name='dse' /> gets expanded to:
     683       <xsl:call-template name="langfrag">
     684     <xsl:with-param name="name">dse</xsl:with-param>
     685       </xsl:call-template>
     686       Before the param can be used in this template, need to retrieve it by name with <xsl:param/>
     687       as explained in http://www.maconstateit.net/tutorials/XML/XML05/xml05-05.aspx
     688       -->
    681689  <xsl:template name="langfrag">
    682     <script type="text/javascript">     
    683       <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, @name)"/>
     690    <xsl:param name="name"/>
     691    <script type="text/javascript">
     692      <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, $name)"/>
    684693    </script>
    685694  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.