include yslt.yml2 tstylesheet { include ./textutils.ysl2 template "/" { | package org.pEp.jniadapter; | | public class pEpException extends Exception { } apply "namespace/enum", 0; } function "exception" { param "name"; document("org/pEp/jniadapter/{$name}.java") { | package org.pEp.jniadapter; | | class «$name» extends pEpException { } } } template "enum" for "*" call "exception" with "name" call "CamelCase" with "text", "name(.)"; }