【发布时间】:2015-07-17 19:32:10
【问题描述】:
我有一个问题,我必须显示 courseName 奖项,用逗号分隔作为求职信。很好,我可以使用带有 , 分隔符的 for-each 代码来做到这一点。问题是我想在最后一个奖项之前插入和'和'字符串。而且我无法与它合二为一。任何帮助将不胜感激。
I wish to apply for the above post. i have
这里是xml代码
<!-- educational history starts below-->
<school>
<education>
<fromYear> 2010 </fromYear>
<toYear> 2014 </toYear>
<courseName> Bachelor of Science in Physocology </courseName>
<institution> The University of Dublin, Trinity College </institution>
</education>
<education>
<fromYear> 2004 </fromYear>
<toYear> 2010 </toYear>
<institution> Cadbury College, Ballyknock, CoRoscommon </institution>
<subject>English (A1),Irish (B2) , History (B2),French (B3)and Maths (B1)</subject>
</education>
<education>
<institution> University of Dublin, Trinity College </institution>
<courseName>Bachelor of Arts in Economics, June 2005 </courseName>
<subjects> Firms and Development, Statistics, Applied Economics and International Economics </subjects>
</education>
</school>
【问题讨论】:
-
您是否已经设置了 XSLT 样式表? ——如果是,请张贴。您也可以发布预期的输出吗?
标签: xml xpath foreach xslt-1.0 separator