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";