diff --git a/src/gen_java_exceptions.ysl2 b/src/gen_java_exceptions.ysl2 index fc9f4a5..69caf18 100644 --- a/src/gen_java_exceptions.ysl2 +++ b/src/gen_java_exceptions.ysl2 @@ -8,7 +8,7 @@ tstylesheet { | | public class pEpException extends Exception { } - apply "namespace/enum[@name='pEp_status']", 0; + apply "namespace/exception[@name='pEp_status']", 0; } function "exception" { @@ -21,7 +21,7 @@ tstylesheet { } } - template "enum" for "*[text()!=0]" call "exception" + template "exception" for "*[text()!=0]" call "exception" with "name" call "CamelCase" with "text", "name(.)"; }