I'm having problem translating this sentence

> 正直な人が損をするようなことは、あってはいけない.

and more importantly I want to know what ”ような” means exactly in this context,
please give me a short example of ”ような” if possible. I'm also curious what
"あって" means too.

Sorry to bother and thanks in advance.
CC BY-SA 3.0
2017-02-15T11:36:22.377
43545
2017-02-15T18:12:01.580
2017-02-15T12:07:36.990
19874
19874
question
grammar translation
ような in the sentence and how to use?
I'll try to translate the sentence just literally into English.

'There should not be things like an honest person suffer a loss.'

ような in this context means 'like' as a preposition. Hence 'ようなこと' would be
translated to 'things like~ あって is continuous form of the verb ある(to be or to
exist) As opposed to the e.g. below あって sounds very natural.

正直な人が損をするようなことは、'ある'はいけない。 Here in this example'ある' , I intentionally remained
in infinitive form. I can completely understand but conveys a feeling that the
speaker is a novice Japanese learner.
CC BY-SA 3.0
2017-02-15T13:45:20.673
43547
2017-02-15T13:45:20.673
19858
43545
answer
The structure is ような ＋ Noun Yo na literally means like, similar to,such as,
etc So a person like this = ような人 A thing like this = ようなもの

In the context,it means 'such as like making a loss' The sentence means 'for
an honest person, it is not possible he had things like loosing money.'
CC BY-SA 3.0
2017-02-15T18:12:01.580
43556
2017-02-15T18:12:01.580
19878
43545
answer