вот поправленный темплейт:
<xsl:template match="shop_item" mode="json">
<xsl:variable name="group" select="shop_group_id"/>
<xsl:variable name="formated-address" select="/shop/items_coords/formated-address"/>
<xsl:variable name="lat" select="/shop/items_coords/lat"/>
<xsl:variable name="lng" select="/shop/items_coords/lng"/>
{
title: "<xsl:value-of disable-output-escaping="yes" select="name"/>",
address: "<xsl:value-of select="$formated-address" /><!--<xsl:value-of disable-output-escaping="yes" select="property_value[tag_name='address']/value"/>, Зеленоград, Москва, Россия-->",
lat: <xsl:value-of select="$lat" />,
lng: <xsl:value-of select="$lng" />,
img: "<xsl:value-of disable-output-escaping="yes" select="dir"/>/<xsl:value-of disable-output-escaping="yes" select="image_small"/>",
category: "<xsl:value-of select="//shop_group[@id=$group]/name"/>",
icon: "<xsl:value-of select="//shop_group[@id=$group]/property_value[tag_name='icon']/value"/>",
<!--featText: "Fixed Price $99",-->
rating: "<xsl:value-of select="comments_average_grade" />",
link: "<xsl:value-of disable-output-escaping="yes" select="url"/>"
}
<xsl:if test="position() != last()">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:template>
вот ответ от этого темплейта
<script>
var mapMarkers = [
{
title: "Ardo A 56V4 ED white",
address: "ул. Юности, 2 строение 1, Зеленоград, Москва, Россия, 124482",
lat: 56.0018273,
lng: 37.2107336,
img: "/upload/shop_3/2/0/7/item_207//small_item_207.jpg",
category: "Кафе",
icon: "icon-teacup",
rating: "0",
link: "/locations/kafe/ardo-companies-are-a-56v4-ed-white/"
}
,
{
title: "Zanussi ZCE 560 MW",
address: "ул. Юности, 2 строение 1, Зеленоград, Москва, Россия, 124482",
lat: 56.0018273,
lng: 37.2107336,
img: "/upload/shop_3/2/1/3/item_213//small_item_213.jpg",
category: "Кафе",
icon: "icon-teacup",
rating: "0",
link: "/locations/kafe/zanussi-zce-560-mw/"
}
,
{
title: "Кафе Андерсон",
address: "ул. Юности, 2 строение 1, Зеленоград, Москва, Россия, 124482",
lat: 56.0018273,
lng: 37.2107336,
img: "/upload/shop_3/2/0/6/item_206//small_item_206.jpg",
category: "Кафе",
icon: "icon-teacup",
rating: "3.5",
link: "/locations/kafe/kafe-anderson/"
}
];
</script>
если делать echo переменных в ТДС то адреса выдаются разные
Где может быть ошибка?