Changeset 18453 for greenstone3/trunk/web/ui/xslt/preProcess.xsl
- Timestamp:
- 2009-02-02T17:39:28+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/ui/xslt/preProcess.xsl
r16373 r18453 2 2 3 3 <xsl:stylesheet version="1.0" 4 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" 5 xmlns:gslib="http://www.greenstone.org/skinning" 6 xmlns:java="http://xml.apache.org/xslt/java" 7 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" 8 xmlns:xalan="http://xml.apache.org/xalan" 4 9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 xmlns: gslib="http://www.greenstone.org/skinning"6 xmlns:xalan="http://xml.apache.org/xalan">10 xmlns:xslt="output.xsl" 11 > 7 12 8 <xsl:output method="xml"/> 13 <xsl:output method="xml"/> 14 15 16 9 17 10 18 <xsl:template match="/"> 19 20 21 22 11 23 <xsl:for-each select="/skinAndLibraryXsl/skinXsl/xsl:stylesheet"> 12 24 … … 36 48 </xsl:for-each> 37 49 38 39 40 41 50 42 51 </xsl:element> … … 49 58 <!-- produce an exact copy of the current node, but expand and replace all elements belonging to the gslib namespace. --> 50 59 <xsl:template name="expand_gslib_elements"> 60 61 51 62 <xsl:for-each select="*|text()"> 52 63 <xsl:choose> 53 64 54 65 55 66 <!-- if node has gslib prefix, expand it into appropriate copy-of or call-template element --> … … 88 99 </xsl:when> 89 100 90 101 <!-- if a regular node --> 91 102 <xsl:otherwise> 92 103 <xsl:variable name="element-name" select="name()"/> … … 101 112 </xsl:element> 102 113 </xsl:otherwise> 114 115 103 116 </xsl:choose> 104 117 </xsl:for-each>
Note:
See TracChangeset
for help on using the changeset viewer.