~ubuntu-branches/ubuntu/raring/gpac/raring

« back to all changes in this revision

Viewing changes to regression_tests/auxiliary_files/svg2html.xslt

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-01-24 23:34:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070124233457-zzlls8afkt0nyakj
Tags: 0.4.2~rc2-0ubuntu1
* New upstream release
  * Most notably MP4 tagging support via MP4Box -itags
* debian/patches/01_64bits.dpatch: dropped; included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<xsl:stylesheet
 
3
    version = "2.0"
 
4
    xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
 
5
    xmlns:xs = "http://www.w3.org/2001/XMLSchema"
 
6
    xmlns:svg = "http://www.w3.org/2000/svg">
 
7
    <xsl:output method = "xml" version = "1.0" encoding = "UTF-8" indent = "yes"/>
 
8
    <xsl:param name = "filename"/>
 
9
    <xsl:param name = "previous"/>
 
10
    <xsl:param name = "next"/>
 
11
    <xsl:param name = "use3d"/>
 
12
    <xsl:param name = "snapshot1"/>
 
13
    <xsl:param name = "snapshot2"/>
 
14
    <xsl:param name = "snapshot3"/>
 
15
    <xsl:param name = "snapshot4"/>
 
16
    <xsl:param name = "snapshot5"/>
 
17
    <xsl:param name = "snapshot6"/>
 
18
    <xsl:param name = "title" select = "//svg:title"/>
 
19
    <xsl:template match = "/">
 
20
        <html>
 
21
            <head>
 
22
                <title>
 
23
                    <xsl:value-of select = "$title"/>
 
24
                </title>
 
25
                <link rel = "stylesheet" type = "text/css" href = "index.css"/>
 
26
            </head>
 
27
            <body>
 
28
                <h1 id = "title">
 
29
                    <xsl:value-of select = "$title"/>
 
30
                </h1>
 
31
                <div id = "nav">
 
32
                    <ul>
 
33
                        <xsl:if test = "$previous">
 
34
                            <li>
 
35
                                <a href = "{$previous}.html">Previous</a>
 
36
                            </li>
 
37
                        </xsl:if>
 
38
                        <li>
 
39
                            <a href = "index.html">Index</a>
 
40
                        </li>
 
41
                        <xsl:if test = "$next">
 
42
                            <li>
 
43
                                <a href = "{$next}.html">Next</a>
 
44
                            </li>
 
45
                        </xsl:if>
 
46
                    </ul>
 
47
                </div>
 
48
                <div id = "content">
 
49
                    <div id = "left">                
 
50
                        <div id = "description">
 
51
                            <h2>Description</h2>
 
52
                            <xsl:value-of select = "//svg:desc"/>
 
53
                        </div>
 
54
                        <div id = "downloadbar">
 
55
                            <h2>Download</h2>
 
56
                            <ul>
 
57
                                <li><a href = "{$filename}.svg">SVG </a></li>
 
58
                                <li><a href = "{$filename}.mp4">LASeR (as MP4 file)</a></li>
 
59
                            </ul>
 
60
                        </div>
 
61
                    </div>
 
62
                    <div id = "right">                
 
63
                        <div id = "contentview">
 
64
                            <h2>Viewer</h2>
 
65
                            <object id = "player" type = "application/x-gpac"
 
66
                                width = "{//svg:svg/@width}"
 
67
                                height = "{//svg:svg/@height}"                                
 
68
                                pluginspage = "http://perso.enst.fr/~lefeuvre/GPAC/GPAC%20Framework%200.4.1%20Setup.exe">
 
69
                                <param name = "src" value = "{$filename}.svg"/>
 
70
Your browser does not have the GPAC plugin installed, visit http://gpac.sourceforge.net for more information ...</object>
 
71
                            <form name = "formname">
 
72
                                <input type = "button" value = "Play" onclick = "document.player.Play()"/>
 
73
                                <input type = "button" value = "Pause" onclick = "document.player.Pause()"/>
 
74
                                <input type = "button" value = "Reload" onclick = "document.player.Reload()"/>
 
75
                            </form>
 
76
                        </div>
 
77
                    </div>
 
78
                    <xsl:if test = "$snapshot1">
 
79
                        <div id = "snapshotview">
 
80
                            <h2>Snapshots</h2>
 
81
                            <table>
 
82
                                <tr>
 
83
                                    <xsl:if test = "$snapshot1"><td>At time T = <xsl:value-of select="$snapshot1"/></td></xsl:if>
 
84
                                    <xsl:if test = "$snapshot2"><td>At time T = <xsl:value-of select="$snapshot2"/></td></xsl:if>
 
85
                                    <xsl:if test = "$snapshot3"><td>At time T = <xsl:value-of select="$snapshot3"/></td></xsl:if>
 
86
                                    <xsl:if test = "$snapshot4"><td>At time T = <xsl:value-of select="$snapshot4"/></td></xsl:if>
 
87
                                    <xsl:if test = "$snapshot5"><td>At time T = <xsl:value-of select="$snapshot5"/></td></xsl:if>
 
88
                                    <xsl:if test = "$snapshot6"><td>At time T = <xsl:value-of select="$snapshot6"/></td></xsl:if>
 
89
                                </tr>
 
90
                                <tr>
 
91
                                    <xsl:if test = "$snapshot1">
 
92
                                        <td><img src = "{$filename}_1.bmp" alt = "{concat('Snapshot #1 at time ',$snapshot1)}"/></td>
 
93
                                    </xsl:if>
 
94
                                    <xsl:if test = "$snapshot2">
 
95
                                        <td><img src = "{$filename}_2.bmp" alt = "{concat('Snapshot #2 at time ',$snapshot2)}"/></td>
 
96
                                    </xsl:if>
 
97
                                    <xsl:if test = "$snapshot3">
 
98
                                        <td><img src = "{$filename}_3.bmp" alt = "{concat('Snapshot #3 at time ',$snapshot3)}"/></td>
 
99
                                    </xsl:if>
 
100
                                    <xsl:if test = "$snapshot4">
 
101
                                        <td><img src = "{$filename}_4.bmp" alt = "{concat('Snapshot #4 at time ',$snapshot4)}"/></td>
 
102
                                    </xsl:if>
 
103
                                    <xsl:if test = "$snapshot5">
 
104
                                        <td><img src = "{$filename}_5.bmp" alt = "{concat('Snapshot #5 at time ',$snapshot5)}"/></td>
 
105
                                    </xsl:if>
 
106
                                    <xsl:if test = "$snapshot6">
 
107
                                        <td><img src = "{$filename}_6.bmp" alt = "{concat('Snapshot #6 at time ',$snapshot6)}"/></td>
 
108
                                    </xsl:if>
 
109
                                </tr>
 
110
                            </table>
 
111
                        </div>
 
112
                    </xsl:if>
 
113
                </div>
 
114
            </body>
 
115
        </html>
 
116
    </xsl:template>
 
117
</xsl:stylesheet>