使用相同的根添加xml的两个元素的值

时间:2016-09-06 14:40:55

标签: xml xslt

我正在使用xslt将我的xml文件导入到InDesign中,并尝试添加两个位于不同行但具有相同根的元素,但是根目录中的量词创建了两个单独的行。如下所示,我试图将“Corners”的两个值添加到一个值中。

<sogame source="TAS For Soccer" version="1.16.01" generated="9/4/2016">
  <venue gameid="LCFH0904" visid="LC" visname="Limestone" homeid="MERW" homename="Mercy" date="9/4/2016" location="Dobbs Ferry, N.Y." stadium="Mercy Field" start="3 p.m." end="4:29 pm" duration="1:29" attend="59" schednote="" weather="75 degrees, sunny, windy" leaguegame="Y" neutralgame="N">
    <officials>
      <official title="Referee" name="Lesley Loeb" />
      <official title="Asst. Referee" name="Nora Boyer" />
      <official title="Scorer" name="Kyle Goodhart" />
    </officials>
    <rules prds="2" minutes="35" minutesot="10" />
    <show sog="1" goaldesc="1" offsides="1" fouls="0" fhk="0" />
  </venue>
  <stars />
  <status period="2" clock="70:00" />
  <team vh="V" id="LC" name="Limestone" code="1174" record="0-2, 0-1 ECAC" rank="10">
    <linescore periods="2" line="0,0" score="0" shotline="10,10" shots="20">
      <lineprd prd="1" score="0" shots="10" saves="2" fouls="0" corners="8" offsides="0" />
      <lineprd prd="2" score="0" shots="10" saves="1" fouls="0" corners="19" offsides="0" />
    </linescore>

0 个答案:

没有答案