fabulator-exhibit 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ === 0.0.5 2010-10-28
2
+
3
+ * 1 major enhancement:
4
+ * Added ex:if-exists conditional for lenses (xslt)
5
+
6
+ * 1 minor enhancement:
7
+ * Added ex:show-missing attribute for ex:list-view
8
+
1
9
  === 0.0.4 2010-10-26
2
10
 
3
11
  * 3 major enhancement:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -1,2 +1,3 @@
1
+ require 'fabulator'
1
2
  require 'fabulator/exhibit/lib'
2
3
  require 'fabulator/exhibit/version'
@@ -133,6 +133,7 @@
133
133
  <xsl:attribute name="ex:role">facet</xsl:attribute>
134
134
  <xsl:attribute name="id"><xsl:value-of select="generate-id(.)" /></xsl:attribute>
135
135
  <xsl:attribute name="ex:expression"><xsl:value-of select="@ex:select" /></xsl:attribute>
136
+ <xsl:attribute name="ex:showMissing"><xsl:value-of select="@ex:show-missing" /></xsl:attribute>
136
137
  <xsl:attribute name="ex:facetClass">List</xsl:attribute>
137
138
  <xsl:attribute name="ex:facetLabel"><xsl:value-of select="ex:caption" /></xsl:attribute>
138
139
  </div>
@@ -186,10 +187,8 @@
186
187
  <xsl:if test="ex:caption">
187
188
  <span class="exhibit-lens-property-name"><xsl:value-of select="ex:caption" /></span>
188
189
  </xsl:if>
189
- <span class="exhibit-lens-property-values">
190
- <span>
191
- <xsl:attribute xsl:name="ex:content"><xsl:value-of select="@ex:select" /></xsl:attribute>
192
- </span>
190
+ <span class="exhibit-lens-property-value">
191
+ <xsl:attribute xsl:name="ex:content"><xsl:value-of select="@ex:select" /></xsl:attribute>
193
192
  </span>
194
193
  </xsl:template>
195
194
 
@@ -217,5 +216,12 @@
217
216
  <xsl:apply-templates />
218
217
  </div>
219
218
  </xsl:template>
219
+
220
+ <xsl:template match="ex:if-exists">
221
+ <span>
222
+ <xsl:attribute name="ex:if-exists"><xsl:value-of select="@ex:select" /></xsl:attribute>
223
+ <xsl:apply-templates />
224
+ </span>
225
+ </xsl:template>
220
226
 
221
227
  </xsl:stylesheet>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabulator-exhibit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Smith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-26 00:00:00 +00:00
18
+ date: 2010-10-29 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency