Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.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
Xml XSLT一对多映射?_Xml_Xslt - Fatal编程技术网

Xml XSLT一对多映射?

Xml XSLT一对多映射?,xml,xslt,Xml,Xslt,我正在调用一个web服务,它返回一个xml作为响应。此xml响应的结构如下所示 <xsd:complexType name="MoveToNextSecretQuestionResponseType"> <xsd:sequence> <xsd:element name="question" type="xsd:string"/> <xsd:element name="authSessionId" type="xsd:string"/&

我正在调用一个web服务,它返回一个xml作为响应。此xml响应的结构如下所示

<xsd:complexType name="MoveToNextSecretQuestionResponseType">
  <xsd:sequence>
    <xsd:element name="question" type="xsd:string"/>
    <xsd:element name="authSessionId" type="xsd:string"/>
    <xsd:element name="questionId" type="xsd:string"/>
    <xsd:element name="answerList" type="answerList"/>
    <xsd:element name="locale" type="LocaleType"/>
  </xsd:sequence>
 </xsd:complexType>
} 将响应变量发送回

<questionResponse>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
 .
 .
 .
</questionResponse>

我不明白这个问题。while循环是用什么语言编写的?为什么不使用XSLT来完成整个工作呢?嗨,Michael,谢谢你的回答,我正在使用BPELoracle SOA来实现这个逻辑。我提到的代码是一个通用的代码,只是为了理解流程。对不起,我不知道BPEL。
while(iterator>=0){
call the web service.
store the response into source variable.
call the xsl(source=Response[iterator])
iterator= iterator-1
<questionResponse>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
 .
 .
 .
</questionResponse>