/** dec-templ.c - XML decoder template, used in code generation
** Copyright (c) 2010 Sampo Kellomaki (sampo@iki.fi), All Rights Reserved.
** Copyright (c) 2006-2007 Symlabs (symlabs@symlabs.com), All Rights Reserved.
** Author: Sampo Kellomaki (sampo@iki.fi)
** This is confidential unpublished proprietary source code of the author.
** NO WARRANTY, not even implied warranties. Contains trade secrets.
** Distribution prohibited unless authorized in writing.
** Licensed under Apache License 2.0, see file COPYING.
** $Id: dec-templ.c,v 1.30 2008-10-04 23:42:14 sampo Exp $
**
** 28.5.2006, created, Sampo Kellomaki (sampo@iki.fi)
** 8.8.2006, reworked namespace handling --Sampo
** 12.8.2006, added special scanning of xmlns to avoid backtracking elem recognition --Sampo
** 23.9.2006, added collection of WO information --Sampo
** 21.6.2007, improved handling of undeclared namespace prefixes --Sampo
** 27.10.2010, CSE refactoring, re-engineered namespace handling --Sampo
** 21.11.2010, re-engineered to extract most code to zx_DEC_elem, leaving just switches --Sampo
**
** N.B: This template is meant to be processed by pd/xsd2sg.pl. Beware
** of special markers that xsd2sg.pl expects to find and understand.
**/
int TXDEC_ATTR_ELNAME(struct zx_ctx* c, struct ELSTRUCT* x)
{
switch (x->gg.attr->g.tok) {
ATTRS;
default: return 0;
}
}
int TXDEC_ELEM_ELNAME(struct zx_ctx* c, struct ELSTRUCT* x)
{
struct zx_elem_s* el = x->gg.kids;
switch (el->g.tok) {
ELEMS;
default: return 0;
}
}
/* EOF */