我的 XML:
<WorkingTime>
<FromTime>08:00</FromTime>
<ToTime>11:00</ToTime>
<Name>Izpit Matematika</Name>
<Owner>Marko Lackovic</Owner>
<Category>
<School Professor="111" Room="1" Subject="882" />
</Category>
</WorkingTime>
<Professors>
<Professor email="xxx" id="111" code="String">Name 1</Professor>
<Professor email="xxx" id="222" code="String">Name 2</Professor>
<Professor email="xxx" id="333" code="String">Name 3</Professor>
</Professors>
<Rooms>
<Room id="1">IA-301</Room>
<Room id="2">A-302</Room>
<Room id="3">A-303</Room>
<Room id="4">A-304</Room>
<Room id="5">A-305</Room>
<Room id="6">A-306</Room>
</Rooms>
<Subjects>
<Subject id="881">Vaje</Subject>
<Subject id="882">Kolokvij</Subject>
<Subject id="883">Predmet</Subject>
<Subject id="884">Izpit</Subject>
</Subjects>
我现在如何在 XSLT 中打印Professor
,Room
和Subject
.
例如:
对于教授:Name1,对于房间 IA-301,对于主题 Kolokvij。