我有XML,我想使用XSL
只提取一些数据XML
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(\..*)?"/>
</xs:restriction>
</xs:simpleType>
我正在使用的XSLT
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RESULT>
<Response>
<StatusReport><![CDATA[FTPClientBeginSession finished successfully.
ServiceStartTime=[2016-12-05 09:24:04.382]
ServiceEndTime=[2016-12-05 09:24:04.497]
SessionToken=[Local_FTPClientAdapter_node1_14809478443821014:141891070]
ServiceTranscript=[
220 Server ready for new user.
> USER Partner123b
331 Password required for Partner123b.
> PASS *****
230 User Partner123b logged in.
]
]]>
</StatusReport>
</Response>
</RESULT>
能够在CDATA中提取完整数据,但我只想要 ServiceTranscript 。 是否有办法从CDATA中仅提取特定内容。