What do you mean when you say "when I change strict to transitional, things go wrong"? Can you add an example of what goes wrong?
–
Daniel HaleyJun 23 '11 at 2:44

If you go to your doctor and say you don't feel well, he's going to ask for more information about the symptoms. Similarly, if you post on a forum saying "things go wrong", people are going to ask you to explain exactly what happens.
–
Michael KayJun 23 '11 at 9:10

Oh, the code I post just now is the same as yours. I am quite curious how you get the answer. How did you learn to transform xml to html? Can you please give me some advice, like what books should I read? Thank you very much.
–
user811416Jun 25 '11 at 14:43

Your first and second line are not the same. Your desired output is XHTML but your found solution, the second line, describes HTML. Because you want XHTML (which is basically HTML with a XML Syntax) use this line like @empo (+1) already described: