You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2004/04/03 04:04:17 UTC
cvs commit: cocoon-2.1/src/webapp/samples/common/style/xsl/html simple-page2html.xsl
joerg 2004/04/02 18:04:17
Modified: src/webapp/samples/common/style/xsl/html
simple-page2html.xsl
Log:
handle error elements of SimpleFormTransformer
Revision Changes Path
1.9 +6 -0 cocoon-2.1/src/webapp/samples/common/style/xsl/html/simple-page2html.xsl
Index: simple-page2html.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/common/style/xsl/html/simple-page2html.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- simple-page2html.xsl 6 Mar 2004 02:25:58 -0000 1.8
+++ simple-page2html.xsl 3 Apr 2004 02:04:17 -0000 1.9
@@ -106,6 +106,12 @@
</a>
</xsl:template>
+ <xsl:template match="error">
+ <span class="error">
+ <xsl:apply-templates/>
+ </span>
+ </xsl:template>
+
<xsl:template match="@*|node()" priority="-2"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
<xsl:template match="text()" priority="-1"><xsl:value-of select="."/></xsl:template>
</xsl:stylesheet>