From f0776dfa205f2b6c0acdeabd9a728bc02059a6a2 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Mon, 6 Apr 2015 00:06:23 +0200 Subject: [PATCH] remove exception for PEP_STATUS_OK --- src/gen_java_exceptions.ysl2 | 2 +- src/gen_throw_pEp_exception.ysl2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen_java_exceptions.ysl2 b/src/gen_java_exceptions.ysl2 index 43b0622..fc9f4a5 100644 --- a/src/gen_java_exceptions.ysl2 +++ b/src/gen_java_exceptions.ysl2 @@ -21,7 +21,7 @@ tstylesheet { } } - template "enum" for "*" call "exception" + template "enum" for "*[text()!=0]" call "exception" with "name" call "CamelCase" with "text", "name(.)"; } diff --git a/src/gen_throw_pEp_exception.ysl2 b/src/gen_throw_pEp_exception.ysl2 index 25b38ee..3515342 100644 --- a/src/gen_throw_pEp_exception.ysl2 +++ b/src/gen_throw_pEp_exception.ysl2 @@ -35,7 +35,7 @@ tstylesheet { const char *ex_name; switch (status) { - `` apply "enum/*", 4, mode=case + `` apply "enum/*[text()!=0]", 4, mode=case default: assert(0); ex_name = "Exception";