XML выглядит следующим образом
<shop_group id="673">
<shop_id>1</shop_id>
<parent_id>0</parent_id>
<name>Детский транспорт</name>
<description></description>
<image_large>shop_group_image673.jpg</image_large>
<image_small>small_shop_group_image673.jpg</image_small>
<sorting>0</sorting>
<indexing>1</indexing>
<subgroups_count>4</subgroups_count>
<subgroups_total_count>4</subgroups_total_count>
<items_count>56</items_count>
<items_total_count>56</items_total_count>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<path>detskij-transport</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<user_id>19</user_id>
<image_large_width>600</image_large_width>
<image_large_height>600</image_large_height>
<image_small_width>250</image_small_width>
<image_small_height>250</image_small_height>
<guid>2CC664C0-AF41-D366-2FA9-82C499201AFF</guid>
<url>/shop/detskij-transport/</url>
<dir>/upload/shop_1/6/7/3/group_673/</dir>
</shop_group>
<shop_item id="1143">
<shortcut_id>0</shortcut_id>
<shop_tax_id>0</shop_tax_id>
<shop_seller_id>0</shop_seller_id>
<shop_group_id>605</shop_group_id>
<shop_currency_id>1</shop_currency_id>
<shop_id>1</shop_id>
<shop_producer_id>140</shop_producer_id>
<shop_measure_id>0</shop_measure_id>
<type>0</type>
<name>Игрушка 1</name>
<marking></marking>
<vendorcode></vendorcode>
<description><p>Бутылочка Tommee tippee пластик 260 мл (2шт) антиколиковая с индикатором температуры соска силикон</p></description>
<text></text>
<image_large>shop_items_catalog_image1143.jpg</image_large>
<image_small>small_shop_items_catalog_image1143.jpg</image_small>
<weight>0.00</weight>
<active>1</active>
<siteuser_group_id>-1</siteuser_group_id>
<sorting>0</sorting>
<path>a-set-of-tommee-tippee-for-introducing-first-foods-for-baby-girl-1701</path>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexing>1</indexing>
<image_small_height>250</image_small_height>
<image_small_width>250</image_small_width>
<image_large_height>600</image_large_height>
<image_large_width>600</image_large_width>
<yandex_market>1</yandex_market>
<yandex_market_bid>0</yandex_market_bid>
<yandex_market_cid>0</yandex_market_cid>
<manufacturer_warranty>0</manufacturer_warranty>
<country_of_origin></country_of_origin>
<yandex_market_sales_notes></yandex_market_sales_notes>
<user_id>19</user_id>
<siteuser_id>0</siteuser_id>
<modification_id>0</modification_id>
<guid>2997C565-83CC-3379-575C-C0BC37525A6E</guid>
<showed>6</showed>
<length>0.00</length>
<width>0.00</width>
<height>0.00</height>
<deleted>0</deleted>
<url>/shop/nutrition-and-feeding/accessories-for-feeding/a-set-of-tommee-tippee-for-introducing-first-foods-for-baby-girl-1701/</url>
<date>22.01.2015</date>
<datetime>22.01.2015 22:27:34</datetime>
<start_datetime>0000-00-00 00:00:00</start_datetime>
<end_datetime>0000-00-00 00:00:00</end_datetime>
<dir>/upload/shop_1/1/1/4/item_1143/</dir>
<rest>0</rest>
<reserved>0</reserved>
<price>1390.00</price>
<discount>0</discount>
<tax>0.00</tax>
<price_tax>1390.00</price_tax>
<currency>руб.</currency>
<shop_producer id="140">
<shop_producer_dir_id>0</shop_producer_dir_id>
<shop_id>1</shop_id>
<name>Tommee tippee </name>
<active>1</active>
<description></description>
<image_large></image_large>
<image_small></image_small>
<sorting>0</sorting>
<path>tommee-tippee</path>
<user_id>19</user_id>
<address></address>
<phone></phone>
<fax></fax>
<site></site>
<email></email>
<tin></tin>
<kpp></kpp>
<psrn></psrn>
<okpo></okpo>
<okved></okved>
<bik></bik>
<current_account></current_account>
<correspondent_account></correspondent_account>
<bank_name></bank_name>
<bank_address></bank_address>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<dir>/upload/shop_1/producers/</dir>
</shop_producer>
</shop_item>
Т.е. необходимо осуществить вывод id группы которой принадлежит <shop_item id="1143"> (в данном случае это <shop_group id="673">

Подскажите пожалуйста как это сделать?
Можно ли это сделать только через xsl или нужно менять ТДС?
Спасибо!