2008-03-24 16:04:46 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:cc="http://web.resource.org/cc/"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
>
|
|
|
|
|
|
|
|
<xsl:template name="message">
|
|
|
|
|
|
|
|
<div class="messagebox">
|
2008-04-10 05:05:19 +00:00
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
<xsl:attribute name="id">
|
|
|
|
<xsl:value-of select="/page/message/@type" />
|
|
|
|
</xsl:attribute>
|
2008-04-10 05:05:19 +00:00
|
|
|
|
2008-03-27 16:43:08 +00:00
|
|
|
<span class="message">
|
2008-04-10 05:05:19 +00:00
|
|
|
<xsl:variable name="messagetext" select="/page/message/@text" />
|
2008-04-27 16:53:38 +00:00
|
|
|
<xsl:value-of select="$lang_strings[@id=$messagetext]" />
|
2008-04-10 05:05:19 +00:00
|
|
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
2008-04-17 14:45:36 +00:00
|
|
|
<xsl:when test="starts-with(/page/message/@value,'http')">
|
|
|
|
<a>
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="/page/message/@value" />
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="/page/message/@value" />
|
|
|
|
</a>
|
2008-04-10 05:05:19 +00:00
|
|
|
</xsl:when>
|
|
|
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="/page/message/@value" />
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
2008-03-27 16:43:08 +00:00
|
|
|
</span>
|
2008-04-10 05:05:19 +00:00
|
|
|
|
2008-03-24 16:04:46 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|