Changeset 20157 for greenstone3/trunk/web/ui
- Timestamp:
- 2009-08-05T16:14:28+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/ui/xslt/preProcess.xsl
r20150 r20157 13 13 14 14 <xsl:output method="xml"/> 15 <xsl:namespace-alias 16 stylesheet-prefix="xslt" result-prefix="xsl"/> 15 17 16 18 <xsl:template match="/"> 17 19 18 <xsl:for-each select="/skinAndLibraryXsl/skinXsl/xsl:stylesheet"> 20 <!-- explicitly output the stylesheet element here so we can include the 21 namespace declarations. They were going missing before with the new xalan/xerces--> 22 <xslt:stylesheet version="1.0" 23 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 24 xmlns:gslib="http://www.greenstone.org/skinning" 25 xmlns:java="http://xml.apache.org/xslt/java" 26 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 27 xmlns:xalan="http://xml.apache.org/xalan" 28 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 29 xmlns:xslt="output.xsl" 30 xmlns:gs3="http://www.greenstone.org/gs3"> 19 31 20 < !-- produce an exact copy of skin stylesheet, with gslib nodes expanded. -->21 <xsl:variable name="element-name" select="name()"/> 22 <xsl:element name="{$element-name}">32 <xsl:for-each select="/skinAndLibraryXsl/skinXsl/xsl:stylesheet"> 33 34 <!-- produce an exact copy of skin stylesheet, with gslib nodes expanded. --> 23 35 <xsl:for-each select="@*"> 24 36 <xsl:variable name="attribute-name" select="name()"/> … … 27 39 </xsl:attribute> 28 40 </xsl:for-each> 29 30 41 <!-- merge the attributes of the library stylesheet --> 31 42 <xsl:for-each select="/skinAndLibraryXsl/libraryXsl/xsl:stylesheet/@*"> … … 43 54 </xsl:for-each> 44 55 45 46 </xsl:element> 47 48 49 </xsl:for-each> 56 </xsl:for-each> 57 </xslt:stylesheet> 58 59 50 60 </xsl:template> 51 61
Note:
See TracChangeset
for help on using the changeset viewer.