Показать сообщение отдельно
Старый 26.04.2013, 00:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Dynamics AX 2012 Services: Applying a XSL transform to a AIF XML document (Outbound Port) selects each value in the whole document instead of the elements specified
Источник: http://blogs.msdn.com/b/axsupport/ar...specified.aspx
==============

For example, the following XML document is created for a customer sales invoice.







{7F99293C-0469-4D50-8489-0C5E5CF2741C}

http://schemas.microsoft.com/dynamics/2008/01/services/SalesSalesInvoiceService/read











USD

10

1104

2008-06-27

en-us

1104



2008-06-27

101076





SalesInvoice

en-us













And you add the following XSL transform on the outbound port:









































It produces the following result:







{F12B1037-B6DC-4BB9-BAD3-B4236422839E}http://schemas.microsoft.com/dynamic...esInvoiceen-us









You would expect the following result:







10









Resolution:



The attached XSL was not taking into account the namespaces within the XML schema. The following XSL is correct. Please use this as a reference for building XSL transforms for our Dynamics AX 2012 documents. There is no product issue here.



<span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">






































Источник: http://blogs.msdn.com/b/axsupport/ar...specified.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.