1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3 <xsl:output method="text" indent="yes"/>
5 <xsl:template match="/notice">/****************************************************************************/
7 /* LIB ERROR MESSAGES */
9 /* Fichier : all_errmsg.h */
10 /* WARNING!!! This file is generated from XML with java - do not edit */
12 /****************************************************************************/
13 #include <stdlib.h>
15 <xsl:apply-templates select="//messages"/>
18 <xsl:template name="vartab">
19 <xsl:param name="last_err"/>
20 char *<xsl:value-of select="@libname" />_errmsgtab[] = {<xsl:for-each select="err">
21 <xsl:variable name="err_num"><xsl:number count="err" from="/lib" /></xsl:variable>
22 <xsl:apply-templates select="num" /> <xsl:apply-templates select="msg"><xsl:with-param name="last_err" select="$last_err"/><xsl:with-param name="err_num" select="$err_num"/></xsl:apply-templates>
23 <xsl:if test="number($err_num) = number($last_err)">
29 <xsl:template match="messages">
30 <xsl:variable name="nb_err"><xsl:value-of select="count(./err)"/></xsl:variable>
32 <xsl:call-template name="vartab"><xsl:with-param name="last_err" select="$nb_err"/></xsl:call-template>
36 <xsl:template match="num">
37 "<xsl:apply-templates/>", </xsl:template>
39 <xsl:template match="msg">
40 <xsl:param name="last_err"/><xsl:param name="err_num"/>"<xsl:apply-templates/>",<xsl:if test="number($err_num) = number($last_err)">
44 <xsl:template match="doc">
45 <xsl:apply-templates/>