This is an old revision of the document!
Получение данных из XML в Javascript:
$aGroups = { <xsl:for-each select="shop_group"> <xsl:value-of select="@id"/> : { 'name' : '<xsl:value-of select="name"/>', 'groups' : { <xsl:for-each select="shop_group"> <xsl:value-of select="@id"/> : { 'name' : '<xsl:value-of select="name"/>', 'groups' : { <xsl:for-each select="shop_group"> <xsl:value-of select="@id"/> : { 'name' : '<xsl:value-of select="name"/>' }, </xsl:for-each> }, }, </xsl:for-each> }, }, </xsl:for-each> };