I've had it with this stupid language. How hard can it be to specify a default value for an attribute? It's frustrating beyond compare. Bah.
Anyway, I have a node. This node may or may not have an attribute called "render". When there is no such attribute, I want my to output "true", when there I have this attribute, I want to output its value.
I came up with something like this:
"render" : "<xsl:apply-templates select="list/entity/@render" mode="renderAttribute"/>"
and the template is:
<xsl:value-of select="true" />
<xsl:value-of select="." />
Except it doesn't work. How do I make it work?