Changeset 28749


Ignore:
Timestamp:
2013-12-05T23:07:07+13:00 (10 years ago)
Author:
davidb
Message:

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

File:
1 edited

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>
Note: See TracChangeset for help on using the changeset viewer.