Yer it be best to write a xsl for this I did help bendigo with this, but for the life of me I cant find the xsl file and it would take me a bit of time to rewrite and test hpefull he will see this and he might still have a copy of the xsl file you can use...
Ok
update on this I have looked at the js and to call the images you would need a xsl that be similar to this
In the code do this
[
$images$
{image : "$lastimage$", title : "$title$, url : "$url$"} <<< this is the last image and doest need a
,
]
Then build a xsl using code below pointing it to $images$ this will insert all the other images,titles and urls if you notice each one ends with a
, but the last image that is why I an suggeting you write as I have described
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match='/'>
<xsl:for-each select="GALLERY/IMAGE">
<xsl:text>[ { image:"</xsl:text>
<xsl:value-of select="FILENAME"/>
<xsl:text>",</xsl:text>
<xsl:text>title :"</xsl:text>
<xsl:value-of select="TITLE"/>
<xsl:text>","</xsl:text>
<xsl:text>url :</xsl:text>
<xsl:value-of select="URL"/>
<xsl:text>" },]
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>