我需要得到这个:
<a href="departments/CHEM.html">Chemistry and Chemical Biology</a>
我尝试使用此代码:
<a href="departments/{department/@code}.html">
但结果我得到<a href="departments/.html">Chemistry and Chemical Biology</a>
这是我的xml
<fas_courses>
<course acad_year="2012" cat_num="5085" offered="Y">
<term term_pattern_code="1" fall_term="Y" spring_term="N">fall term</term>
<department code="CHEM">
<dept_long_name>Department of Chemistry and Chemical Biology</dept_long_name>
<dept_short_name>Chemistry and Chemical Biology</dept_short_name>
</department>
<course_group code="CHEM">Chemistry</course_group>
我该如何解决?提前致谢!