b65e347a5e
ever git-svn-id: http://yolanda.mister-muffin.de/svn@257 7eef14d0-6ed0-489d-bf55-20463b2d70db
34 lines
1.1 KiB
XML
34 lines
1.1 KiB
XML
<?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">
|
|
<xsl:attribute name="id">
|
|
<xsl:value-of select="/page/message/@type" />
|
|
</xsl:attribute>
|
|
<xsl:choose>
|
|
<xsl:when test="/page/message/@type='error'">
|
|
</xsl:when>
|
|
<xsl:when test="/page/message/@type='information'">
|
|
</xsl:when>
|
|
<xsl:when test="/page/message/@type='warning'">
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:variable name="messagetext" select="/page/message/@text" />
|
|
<span class="message">
|
|
<xsl:value-of select="$locale_strings[@id=$messagetext]" />
|
|
<xsl:value-of select="/page/message/@value" />
|
|
<!-- probably one can do this on one line, dunno how -->
|
|
</span>
|
|
</div>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|