Changeset 18544

Show
Ignore:
Timestamp:
19.02.2009 13:50:11 (11 years ago)
Author:
max
Message:

Fixed to problem that used to mess the extracted GSF statements (xslt namespace) when extracting the GSLib statements. Now when we are rewriting a regular node, we take care of its original namespace.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/ui/xslt/preProcess.xsl

    r18453 r18544  
    9999    </xsl:when> 
    100100 
    101         <!-- if a regular node --> 
     101        <!-- if a regular node v2 --> 
    102102    <xsl:otherwise> 
    103103     <xsl:variable name="element-name" select="name()"/> 
    104      <xsl:element name="{$element-name}"> 
     104     <xsl:variable name="element-namespace" select="namespace-uri()"/> 
     105     <xsl:element name="{$element-name}" namespace="{$element-namespace}"> 
    105106      <xsl:for-each select="@*"> 
    106107       <xsl:variable name="attribute-name" select="name()"/>