- Timestamp:
- 2012-04-17T19:57:53+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/transform/util.xsl
r25378 r25398 678 678 </xsl:template> 679 679 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 --> 681 689 <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)"/> 684 693 </script> 685 694 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.