我对 XSLT 没有太多经验。我需要您的帮助来为以下 xml 准备正确的 XSL 转换。我有 XML 之类的
<message>
<requisition>
<data-values>
<data-value multi-valued="false">
<name>Test_Grid-1.Name</name>
<value>1</value>
</data-value>
<data-value multi-valued="false">
<name>Test_Grid-1.SupportType</name>
<value>Monthly,Quarterly</value>
</data-value>
<data-value multi-valued="false">
<name>Test_Grid-1.Status</name>
<value>New</value>
</data-value>
<data-value multi-valued="false">
<name>Test_Grid-2.Name</name>
<value>2</value>
</data-value>
<data-value multi-valued="false">
<name>Test_Grid-2.SupportType</name>
<value>Monthly</value>
</data-value>
<data-value multi-valued="false">
<name>Test_Grid-2.Status</name>
<value>Existing</value>
</data-value>
</data-values>
</requisition>
<agent-parameter multi-valued="false">
<name>ActionType</name>
<value>New</value>
</agent-parameter>
<agent-parameter multi-valued="false">
<name>Dictionary</name>
<value>Test_Grid</value>
</agent-parameter>
<agent-parameter multi-valued="false">
<name>ActionName</name>
<value>SupportData</value>
</agent-parameter>
</message>
我想像这样准备 XML:
<ext:message>
<ext:record>
<ext:name>SupportData</ext:name>
<ext:rowData>
<ext:rowAttribute name="Name">1</ext:rowAttribute>
<ext:rowAttribute name="SupportType">Monthly,Quarterly</ext:rowAttribute>
<ext:rowAttribute name="Status">New</ext:rowAttribute>
</ext:rowData>
</ext:record>
<ext:record>
<ext:name>SupportData</ext:name>
<ext:rowData>
<ext:rowAttribute name="Name">2</ext:rowAttribute>
<ext:rowAttribute name="SupportType">Monthly</ext:rowAttribute>
<ext:rowAttribute name="Status">Existing</ext:rowAttribute>
</ext:rowData>
</ext:record>
你能帮我解决这个问题的 XSL 转换吗?非常感谢您的支持。