XSLT - Sum of each attribute in every element in XML with for-each?
问题 I am new to the whole XSLT thing and I've already tried looking it up through several forums, but I still haven't found the actual solution to my problem. I have the following XML: <Cinema> <Movie name="movie1" in="191" out="191"> <Period time="16:00:00" in="20" out="20"/> <Period time="18:00:00" in="71" out="70"/> <Period time="20:00:00" in="100" out="101"/> </Movie> <Movie name="movie2" in="105" out="105"> <Period time="16:00:00" in="13" out="13"/> <Period time="18:00:00" in="34" out="34"/>