我有一组xml文件,我必须从中检索src后存在的值。从xmi文件检索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文件格式是象下面这样: ... <之前的图像格式为&lt;引号格式为"格式。 –