Project

General

Profile

root / branches / sc50-v2.0 / sources2-0-011 / academic / migr / migrFromOpale3.3.xxx.doss / opale3.5 / binM.xsl @ 322

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0" 
3
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
		xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" 
5
		xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
6
		xmlns:op="utc.fr:ics/opale3"
7
		xmlns:xalan="http://xml.apache.org/xalan"
8
		exclude-result-prefixes="sc sp xalan op">
9
	<xsl:output encoding="UTF-8" method="xml"/>
10
	
11
	<xsl:param name="pCurrentItem"/>
12
	<xsl:param name="pCurrentItemUri"/>
13
	
14
	
15
	<xsl:template match="op:binM">
16
		<op:imgM>
17
			<xsl:apply-templates select="@*|node()"/>		
18
			<xsl:if test="sp:altTxt or sp:desc">
19
				<sp:alt>
20
					<xsl:if test="sp:altTxt">
21
						<sp:altTxt>
22
							<xsl:value-of select="sp:altTxt"/>
23
						</sp:altTxt>
24
					</xsl:if>
25
					<xsl:if test="sp:desc">
26
						<sp:desc>
27
							<xsl:copy-of select="sp:desc/*"/>
28
						</sp:desc>
29
					</xsl:if>
30
				</sp:alt>
31
			</xsl:if>
32
		</op:imgM>
33
	</xsl:template>
34

    
35
	<xsl:template match="sp:altTxt | sp:desc"/>	
36
	
37
	<xsl:template match="@*|node()">
38
		<xsl:copy>
39
			<xsl:apply-templates select="@*|node()"/>
40
	 	</xsl:copy>
41
	</xsl:template>
42
		
43
</xsl:stylesheet>
(2-2/10)