module x { namespace "urn:libyang:tests:x"; prefix x; typedef xtype { type string { length 1; } } leaf x { type xtype; } }