Changeset 28749

Show
Ignore:
Timestamp:
05.12.2013 23:07:07 (6 years ago)
Author:
davidb
Message:

quick fix to help with assignment of variable/metadata that is a string

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r28307 r28749  
    4343            <xsl:apply-templates/> 
    4444            <xslt:text disable-output-escaping="yes">";</xslt:text> 
     45        </script> 
     46    </xsl:template> 
     47 
     48 
     49    <xsl:template match="gsf:variable2"> 
     50        <xslt:variable> 
     51            <xsl:copy-of select="@*"/> 
     52            <xsl:apply-templates/> 
     53        </xslt:variable> 
     54        <script type="text/javascript"> 
     55            gs.variables.<xsl:value-of select="@name"/> 
     56            <xslt:text disable-output-escaping="yes"> = '</xslt:text> 
     57            <xsl:apply-templates/> 
     58            <xslt:text disable-output-escaping="yes">';</xslt:text> 
    4559        </script> 
    4660    </xsl:template>