polyrex-calendar 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/calendar.xsl +1 -1
  2. data/lib/calendar.xsl~ +58 -0
  3. metadata +2 -1
data/lib/calendar.xsl CHANGED
@@ -7,7 +7,7 @@
7
7
  <html lang="en">
8
8
 
9
9
  <head>
10
- <title><xsl:value-of select="summary/year"/> Calendar | generated by Polrex-Calendar</title>
10
+ <title><xsl:value-of select="summary/year"/> Calendar | generated by Polyrex-Calendar</title>
11
11
  <link rel="stylesheet" href="xlayout.css"/>
12
12
  </head>
13
13
 
data/lib/calendar.xsl~ ADDED
@@ -0,0 +1,58 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
+ <xsl:output method="xml" indent="yes" />
4
+
5
+ <xsl:template match="calendar">
6
+
7
+ <html lang="en">
8
+
9
+ <head>
10
+ <title><xsl:value-of select="summary/year"/> Calendar | generated by Polyrex-Calendar</title>
11
+ <link rel="stylesheet" href="xlayout.css"/>
12
+ </head>
13
+
14
+ <body>
15
+ <div id="wrap">
16
+ <h1><xsl:value-of select="summary/year"/></h1>
17
+ <xsl:apply-templates select="records"/>
18
+ </div>
19
+ </body>
20
+ </html>
21
+
22
+ </xsl:template>
23
+
24
+ <xsl:template match="records/month">
25
+ <div class="table">
26
+ <table border="1">
27
+ <xsl:apply-templates select="summary"/>
28
+ <tr><th>S</th><th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th></tr>
29
+ <xsl:apply-templates select="records"/>
30
+ </table>
31
+ </div>
32
+ </xsl:template>
33
+
34
+ <xsl:template match="month/summary">
35
+ <caption><xsl:value-of select="name"/></caption>
36
+ </xsl:template>
37
+
38
+ <xsl:template match="records/week">
39
+ <xsl:apply-templates select="summary"/>
40
+ <xsl:element name="tr">
41
+ <xsl:apply-templates select="records"/>
42
+ </xsl:element>
43
+ </xsl:template>
44
+
45
+ <xsl:template match="week/summary">
46
+
47
+ </xsl:template>
48
+
49
+ <xsl:template match="records/day">
50
+ <xsl:apply-templates select="summary"/>
51
+ <xsl:apply-templates select="records"/>
52
+ </xsl:template>
53
+
54
+ <xsl:template match="day/summary">
55
+ <td><xsl:value-of select="xday"/></td>
56
+ </xsl:template>
57
+
58
+ </xsl:stylesheet>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -44,6 +44,7 @@ files:
44
44
  - lib/polyrex-calendar.rb~
45
45
  - lib/calendar.xsl
46
46
  - lib/layout.css
47
+ - lib/calendar.xsl~
47
48
  - lib/polyrex-calendar.rb
48
49
  has_rdoc: true
49
50
  homepage: