X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=recctrl%2Fxslt.c;fp=recctrl%2Fxslt.c;h=6544b37baeab3e015c1239715e41fe72efeff3ad;hp=bdea2e71d6287c547358abd72d99fb364c023dfb;hb=1722bbb1db5ba2b1cf096388cf3206863ae0a203;hpb=a92a4f15b3e570c055590166ae91f497e61cd949 diff --git a/recctrl/xslt.c b/recctrl/xslt.c index bdea2e7..6544b37 100644 --- a/recctrl/xslt.c +++ b/recctrl/xslt.c @@ -1,4 +1,4 @@ -/* $Id: xslt.c,v 1.23 2006-05-24 08:23:01 marc Exp $ +/* $Id: xslt.c,v 1.24 2006-05-24 12:56:56 marc Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -275,15 +275,15 @@ static struct filter_xslt_schema *lookup_schema(struct filter_xslt_info *tinfo, { /* find requested schema */ if (est) - { + { if (schema->identifier && !strcmp(schema->identifier, est)) - return schema; + return schema; + if (schema->name && !strcmp(schema->name, est)) return schema; - } - + } /* or return default schema if defined */ - if (schema->default_schema) + else if (schema->default_schema) return schema; }