Я пытаюсь преобразовать файл XML в текст, используя XSLT, но у меня нет опыта использования XSLT.
Вот пример XML-файла:
<DOC xsi:noNamespaceSchemaLocation="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DOC_REQUISITES DOC_DATE="2009-04-23" DOC_NO="99999999"/>
<DOCID TradeDate="2009-04-23" Weekday="Monday" MainFirmId="ZXC0000" FirmName="Firm Name" FirmINN="1234567899">
<FIRM FirmID="FirmId">
<CURRENCY CurrencyId="USD">
<DEPARTMENT DepartmentId="ABCD" DepName="Department Name1">
<SETTLEDATE SettleDate="2009-04-23">
<SECURITY SecurityId="QAZ" SecShortName="SecName1" SecurityType="dc" FaceValue="5">
<TRDACC TrdAccId="ABC00000">
<RECORDS RecNo="1" TradeNo="111" TradeTime="15:15:16" Price="10" Quantity="50" Value="500"/>
</TRDACC>
<TRDACC TrdAccId="SDC00000">
<RECORDS RecNo="2" TradeNo="112" TradeTime="15:15:16" Price="10" Quantity="50" Value="500"/>
<RECORDS RecNo="3" TradeNo="113" TradeTime="15:15:16" Price="20" Quantity="10" Value="200"/>
</TRDACC>
</SECURITY>
<SECURITY SecurityId="WSX" SecShortName="SecName2" SecurityType="dc" FaceValue="1">
<TRDACC TrdAccId="ABC00000">
<RECORDS RecNo="4" TradeNo="114" TradeTime="15:15:13" Price="2" Quantity="1" Value="2"/>
</TRDACC>
</SECURITY>
</SETTLEDATE>
</DEPARTMENT>
<DEPARTMENT DepartmentId="CBSD" DepName="Department Name2">
<SETTLEDATE SettleDate="2009-05-20">
<SECURITY SecurityId="RFV" SecShortName="SecName3" SecurityType="dc" FaceValue="2">
<TRDACC TrdAccId="SDC00000">
<RECORDS RecNo="5" TradeNo="115" TradeTime="15:15:13" Price="100" Quantity="10" Value="1000"/>
</TRDACC>
</SECURITY>
</SETTLEDATE>
</DEPARTMENT>
</CURRENCY>
</FIRM>
</DOCID>
</DOC>
Мой желаемый вывод выглядит так:
* +1007 *