我是 XSL 转换的新手,所以可能是它的基本问题,我必须将以下 XML 片段转换为另一种 XML 格式(清单 2)
清单 1:
<arr name="experimental-properties-kind">
<str>Hydrophobicity</str>
<str>Isoelectric Point</str>
<str>Molecular Weight</str>
<str>Molecular Formula</str>
</arr>
<arr name="experimental-properties-value">
<str>-0.985</str>
<str>3.91</str>
<str>2180.2853</str>
<str>C287H440N80O110S6</str>
</arr>
<arr name="experimental-properties-source">
<str>Otto, A. Seckler, R. Eur. J. Biochem. 202:67-73 (1991)</str>
<str/>
<str/>
<str/>
</arr>
清单 2:
<experimental-properties>
<property>
<kind>Hydrophobicity</kind>
<value>-0.985</value>
<source></source>
</property>
<property>
<kind>Isoelectric Point</kind>
<value>3.91</value>
<source></source>
</property>
<property>
<kind>Molecular Weight</kind>
<value>2180.2853</value>
<source></source>
</property>
<property>
<kind>Molecular Formula</kind>
<value>C98H138N24O33</value>
<source></source>
</property>
</experimental-properties>
另外请向我推荐调试 XSLT 的工具。提前致谢!