Ignore:
Timestamp:
2009-02-02T17:39:28+13:00 (15 years ago)
Author:
max
Message:

Some important namespaces included, which now solve the Transformer(Configuration)Exceptions that have appeared since the changes revision 18433 when any of the GS3 libraries are run.

File:
1 edited

Legend:

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

    r16373 r18453  
    22
    33<xsl:stylesheet version="1.0"
     4xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
     5xmlns:gslib="http://www.greenstone.org/skinning"
     6xmlns:java="http://xml.apache.org/xslt/java"
     7xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
     8xmlns:xalan="http://xml.apache.org/xalan"
    49xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    5 xmlns:gslib="http://www.greenstone.org/skinning"
    6 xmlns:xalan="http://xml.apache.org/xalan">
     10xmlns:xslt="output.xsl"
     11>
    712
    8 <xsl:output method="xml"/> 
     13<xsl:output method="xml"/>
     14
     15
     16
    917
    1018<xsl:template match="/">
     19
     20
     21
     22
    1123    <xsl:for-each select="/skinAndLibraryXsl/skinXsl/xsl:stylesheet">
    1224   
     
    3648             </xsl:for-each>
    3749             
    38              
    39              
    40              
    4150
    4251        </xsl:element>
     
    4958<!-- produce an exact copy of the current node, but expand and replace all elements belonging to the gslib namespace. -->
    5059<xsl:template name="expand_gslib_elements">
     60
     61
    5162 <xsl:for-each select="*|text()">
    5263  <xsl:choose>
    53 
     64 
    5465   
    5566    <!-- if node has gslib prefix, expand it into appropriate copy-of or call-template element -->
     
    8899    </xsl:when>
    89100
    90     <!-- if a regular node -->
     101        <!-- if a regular node -->
    91102    <xsl:otherwise>
    92103     <xsl:variable name="element-name" select="name()"/>
     
    101112     </xsl:element>
    102113    </xsl:otherwise>
     114   
     115   
    103116  </xsl:choose>
    104117 </xsl:for-each>
Note: See TracChangeset for help on using the changeset viewer.