-
Notifications
You must be signed in to change notification settings - Fork 0
/
transform.xsl
65 lines (65 loc) · 2.1 KB
/
transform.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" href="../photostyles.css" type="text/css" />
<script type="text/javascript">
function resizeIframe() {
i = parent.document.getElementById(window.name);
iHeight = document.body.scrollHeight;
i.style.height = iHeight + 15 + "px";
}
function OpenComments(c) {
window.open(c,'photocomments','width=320,height=390,scrollbars=no,status=yes');
}
function openBigPhoto(p,w,h) {
ww = w + 10;
wh = h + 20;
window.open(p,'bigphoto','width='+ww+',height='+wh+',scrollbars=no,status=yes');
}
</script>
</head>
<body onload="resizeIframe()">
<xsl:for-each select="Foto">
<center>
<div class="photocentral">
<xsl:choose>
<xsl:when test="Original">
<a href="{Original}" onclick="javascript:openBigPhoto(this.href,{OriginalSizeX},{OriginalSizeY}); return false;">
<img src="{Archivo}" alt="" title="" border="0" />
</a>
</xsl:when>
<xsl:otherwise>
<img src="{Archivo}" alt="" title="" border="0" />
</xsl:otherwise>
</xsl:choose>
</div>
</center>
<br />
<div class="photobodyiframe">
<xsl:value-of select="Texto"/>
<br /><br />
</div>
<div class="posted">
<a href="../?id={ID}" target="newwindow">permalink</a> :: <a href="../_c.cgi?id={ID}" onclick="OpenComments(this.href); return false">comment</a> ..
<xsl:value-of select="Fecha"/>
</div>
<xsl:for-each select="Comentario">
<div class="commentbody">
<xsl:value-of select="Texto"/>
</div>
<div class="commentposted">
<a href="mailto:{Url}">
<xsl:value-of select="Autor"/>
</a>
|
<xsl:value-of select="Fecha"/>
</div>
</xsl:for-each>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>