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:sfm="http://www.utc.fr/ics/scenari/v3/filemeta"
|
7
|
xmlns:xalan="http://xml.apache.org/xalan"
|
8
|
exclude-result-prefixes="sc sp sfm xalan">
|
9
|
<xsl:output encoding="UTF-8" method="xml"/>
|
10
|
|
11
|
<xsl:param name="pCurrentItem"/>
|
12
|
<xsl:param name="pCurrentItemUri"/>
|
13
|
|
14
|
<!-- IMAGE -->
|
15
|
<xsl:template match="sfm:png">
|
16
|
<sfm:png_gif_jpg_jpeg>
|
17
|
<xsl:apply-templates select="@*|node()"/>
|
18
|
</sfm:png_gif_jpg_jpeg>
|
19
|
</xsl:template>
|
20
|
<xsl:template match="sfm:gif">
|
21
|
<sfm:png_gif_jpg_jpeg>
|
22
|
<xsl:apply-templates select="@*|node()"/>
|
23
|
</sfm:png_gif_jpg_jpeg>
|
24
|
</xsl:template>
|
25
|
<xsl:template match="sfm:jpg_jpeg">
|
26
|
<sfm:png_gif_jpg_jpeg>
|
27
|
<xsl:apply-templates select="@*|node()"/>
|
28
|
</sfm:png_gif_jpg_jpeg>
|
29
|
</xsl:template>
|
30
|
|
31
|
<!-- AUDIO -->
|
32
|
<xsl:template match="sfm:mp3">
|
33
|
<sfm:mp3_oga_ogg>
|
34
|
<xsl:apply-templates select="@*|node()"/>
|
35
|
</sfm:mp3_oga_ogg>
|
36
|
</xsl:template>
|
37
|
<xsl:template match="sfm:oga_ogg">
|
38
|
<sfm:mp3_oga_ogg>
|
39
|
<xsl:apply-templates select="@*|node()"/>
|
40
|
</sfm:mp3_oga_ogg>
|
41
|
</xsl:template>
|
42
|
|
43
|
<!-- video -->
|
44
|
<xsl:template match="sfm:mp4_f4v">
|
45
|
<sfm:mp4_f4v_webm>
|
46
|
<xsl:apply-templates select="@*|node()"/>
|
47
|
</sfm:mp4_f4v_webm>
|
48
|
</xsl:template>
|
49
|
<xsl:template match="sfm:webm">
|
50
|
<sfm:mp4_f4v_webm>
|
51
|
<xsl:apply-templates select="@*|node()"/>
|
52
|
</sfm:mp4_f4v_webm>
|
53
|
</xsl:template>
|
54
|
|
55
|
<xsl:template match="@*|node()">
|
56
|
<xsl:copy>
|
57
|
<xsl:apply-templates select="@*|node()"/>
|
58
|
</xsl:copy>
|
59
|
</xsl:template>
|
60
|
|
61
|
</xsl:stylesheet>
|