这将是我的第一篇文章。 我想为2 XML文件创建一个XSLT文件。我不知道从哪里开始。
这是学生的XML文件:
<students>
<student id="a01" list="c001,c002,c004">
<first>Beverly</first>
<last>Kaufmann</last>
</student>
<student id="a02" list="c003,c005, c006">
<first>Kevin</first>
<last>Yates</last>
</student>
这是学生的XML文件:
<contributions>
<contributor id="c001" student="a01">
<first>David</first>
<last>Lee</last>
<address>
<street>212 West Advent St.</street>
<city>Cutler</city>
<state>MO</state>
<zip>32815</zip>
<phone>555-7812</phone>
</address>
<amount>$150</amount>
</contributor>
<contributor id="c002" student="a01">
<first>Karen</first>
<last>Belaska</last>
<address>
<street>500 Maple Ln.</street>
<city>Cutler</city>
<state>MO</state>
<zip>32817</zip>
<phone>555-3219</phone>
</address>
<amount>$50</amount>
</contributor>
<contributor id="c003" student="a02">
<first>Alice</first>
<last>Sanchez</last>
<address>
<street>5 North St.</street>
<city>Davidton</city>
<state>MO</state>
<zip>39810</zip>
<phone>555-0190</phone>
</address>
<amount>$225</amount>
</contributor>
<contributor id="c004" student="a01">
<first>Allen</first>
<last>Chmurutra</last>
<address>
<street>400 Main St.</street>
<city>Davidton</city>
<state>MO</state>
<zip>39112</zip>
<phone>555-4388</phone>
</address>
<amount>$125</amount>
</contributor>
<contributor id="c005" student="a02">
<first>Cynthia</first>
<last>Whyte</last>
<address>
<street>657 Hemisphere Dr.</street>
<city>Cutler</city>
<state>MO</state>
<zip>31287</zip>
<phone>555-0923</phone>
</address>
<amount>$50</amount>
</contributor>
<contributor id="c006" student="a02">
<first>Alison</first>
<last>Heart</last>
<address>
<street>622 Hemisphere Dr.</street>
<city>Cutler</city>
<state>MO</state>
<zip>31287</zip>
<phone>555-0923</phone>
</address>
<amount>$100</amount>
</contributor>
我想为这些xml文件创建表。像这样:output 我不知道从哪里开始。请帮忙!