toasterec, к сожалению, ничего не выходит.
Подключаю файл jquery.iwish.js в макете. Потом вставляю в XSLT следующее:
<xsl:template match="/document">
<xsl:variable name="audio" select="substring-before(item_propertys/item_property[@xml_name='mp3_file']/mp3_file, .)"/>
<script>
$(document).ready(function () {
// Call the function with the filename skee-lo_i-wish and autoPlay to either true or false
$("audio".iWish({audioSource:"{$audio}", autoPlay: true});
});
</script>
Потом в нужном месте XSLT вывожу:
<!-- Название -->
<p class="news_title">
<a href="{item_path}">
<xsl:value-of disable-output-escaping="yes" select="item_name"/>
</a>
</p>
<audio>
<xsl:value-of disable-output-escaping="yes" select="substring-before(item_propertys/item_property[@xml_name='mp3_file']/mp3_file, .)"/>
</audio>
<!-- Изображение для информационного элемента (если есть) -->
<xsl:if test="item_small_image!=''">
<a href="{item_path}" class="news_title">
<img src="{item_small_image}" class="news_img" alt="" align="left"/>
</a>
</xsl:if>