Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
XPath/XSLT生成_Xslt_Xpath - Fatal编程技术网

XPath/XSLT生成

XPath/XSLT生成,xslt,xpath,Xslt,Xpath,如何从该xml中获取客户帐户id值和参与方id值?再见,谢谢 从本质上讲,我希望xpath/xslt向下搜索,找到cust\u account\u id是名称的位置,并从中提取值 <soap-env:Body xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">[[ <WF_EVENT_T xmlns="http://xmlns.oracle.com/xdb/APPS_NE/EBSCustomerSe

如何从该xml中获取客户帐户id值和参与方id值?再见,谢谢

从本质上讲,我希望xpath/xslt向下搜索,找到cust\u account\u id是名称的位置,并从中提取值

<soap-env:Body xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">[[
      <WF_EVENT_T xmlns="http://xmlns.oracle.com/xdb/APPS_NE/EBSCustomerService">
        <PRIORITY xmlns="">50</PRIORITY>
        <SEND_DATE xmlns="">2017-05-02T12:14:28.000-04:00</SEND_DATE>
        <RECEIVE_DATE xsi:nil="true" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        <CORRELATION_ID xsi:nil="true" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        <PARAMETER_LIST xmlns="">
          <PARAMETER_LIST_ITEM>
            <NAME>USER_ID</NAME>
            <VALUE>1569</VALUE>
          </PARAMETER_LIST_ITEM>
          <PARAMETER_LIST_ITEM>
            <NAME>RESP_ID</NAME>
            <VALUE>20678</VALUE>
          </PARAMETER_LIST_ITEM>
          <PARAMETER_LIST_ITEM>
            <NAME>RESP_APPL_ID</NAME>
            <VALUE>222</VALUE>
          </PARAMETER_LIST_ITEM>
          <PARAMETER_LIST_ITEM>
            <NAME>SECURITY_GROUP_ID</NAME>
            <VALUE>0</VALUE>
          </PARAMETER_LIST_ITEM>
          **<PARAMETER_LIST_ITEM>
            <NAME>CUST_ACCOUNT_ID</NAME>
            <VALUE>6049</VALUE>
          </PARAMETER_LIST_ITEM>**
          **<PARAMETER_LIST_ITEM>
            <NAME>PARTY_ID</NAME>
            <VALUE>34842</VALUE>
          </PARAMETER_LIST_ITEM>**
          <PARAMETER_LIST_ITEM>
            <NAME>CUST_ACCOUNT_PROFILE_ID</NAME>
            <VALUE xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
          </PARAMETER_LIST_ITEM>
          <PARAMETER_LIST_ITEM>
            <NAME>P_CREATE_PROFILE_AMT</NAME>
            <VALUE>T</VALUE>
          </PARAMETER_LIST_ITEM>
        </PARAMETER_LIST>
        <EVENT_NAME xmlns="">oracle.apps.ar.hz.CustAccount.create</EVENT_NAME>
        <EVENT_KEY xmlns="">oracle.apps.ar.hz.CustAccount.create55259</EVENT_KEY>
        <EVENT_DATA xmlns=""/>
        <FROM_AGENT xmlns="">
          <NAME>WF_BPEL_QAGENT</NAME>
          <SYSTEM>EBSDEV.CLI.AD</SYSTEM>
        </FROM_AGENT>
        <TO_AGENT xsi:nil="true" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        <ERROR_SUBSCRIPTION xsi:nil="true" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        <ERROR_MESSAGE xsi:nil="true" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
        <ERROR_STACK xsi:nil="true" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </WF_EVENT_T>
    </soap-env:Body>
非常简单:

select="//PARAMETER_LIST_ITEM[NAME='CUST_ACCOUNT_ID']/VALUE