【发布时间】:2015-01-07 09:05:18
【问题描述】:
我有一组 xml 文件,我必须从中检索 src 之后存在的值。
例子:
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.epf.uma:ContentDescription xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.6/uma.ecore" xmlns:rmc="http://www.ibm.com/rmc" rmc:version="7.5.1" xmlns:epf="http://www.eclipse.org/epf" epf:version="1.5.1" xmi:id="-ES_igec88m8mZhEXekVK3A" name="fs_evms,_zl9y8FCTEd6XXocT9rJgNQ" guid="-ES_igec88m8mZhEXekVK3A" changeDate="2009-08-01T13:54:29.422-0400" version="7.5.0">
<mainDescription><p>
<img alt="" src="resources/IPMS_As-Is_75.jpg" width="587" height="346" />
</p></mainDescription>
</org.eclipse.epf.uma:ContentDescription>
或
<sections xmi:id="_vlul8AKaEd6N9prBktGuYg" name="Update the opportunity information in Siebel" guid="_vlul8AKaEd6N9prBktGuYg">
<sectionDescription><img alt="" src="resources/UpdateOpportunity.JPG" width="597" height="360" /></sectionDescription>
</sections>
从一个 xml 文件到另一个的节点的层次结构和值。请告诉我如何使用 xslt 从上述数据中检索 src 的值。
问候, 基兰
【问题讨论】:
-
xmi 文件格式如下:
...
标签: xslt