Changeset 25880

Show
Ignore:
Timestamp:
28.06.2012 15:09:33 (7 years ago)
Author:
kjdon
Message:

invented new gsvar: namespace, to get variables out of gslib

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/core/transform/preProcess.xsl

    r25698 r25880  
    44  xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 
    55  xmlns:gslib="http://www.greenstone.org/skinning" 
     6    xmlns:gsvar="http://www.greenstone.org/skinning-var" 
    67  xmlns:java="http://xml.apache.org/xslt/java" 
    78  xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 
     
    6061      <xsl:choose> 
    6162     
    62      
     63    <xsl:when test="namespace-uri(.)=namespace::gsvar"> 
     64      <xsl:element name="xsl:value-of"> 
     65        <xsl:attribute name="select">$<xsl:value-of select="local-name()" /></xsl:attribute> 
     66          </xsl:element> 
     67</xsl:when> 
    6368    <!-- if node has gslib prefix, expand it into appropriate copy-of or call-template element --> 
    6469    <xsl:when test="namespace-uri(.)=namespace::gslib">