<xsl:param name="currentPage"/> <xsl:variable name="gallery" select="/macro/gallery"/> <xsl:variable name="galleryName" select="/macro/galleryName"/> <!-- need some if here so that we dont have nulls --> <xsl:variable name="height" select="/macro/height"/> <xsl:variable name="width" select="/macro/width"/> <xsl:variable name="align" select="/macro/align"/>
Converting to new XSLT schema
Hi,
I am creating a site in the Umbraco 4.7 and I am having trouble conveting the following XSLT from the old schema to the new schema:
<img id="placeholder{$galleryName}" src="{./data[@alias = 'umbracoFile']}" title="Image gallery" alt="Image gallery" /><p id="desc{$galleryName}"></p>
</xsl:if>
<!--<xsl:if test="position()=1"><p>Previous - </p></xsl:if>-->
<a onclick="return showPic(this, 'desc{$galleryName}', 'placeholder{$galleryName}')" onkeypress="return showPic(this, 'desc{$galleryName}', 'placeholder{$galleryName}')" href="{./data[@alias = 'umbracoFile']}" title="{@nodeName}" target="_blank"><xsl:value-of select="position()" /></a><a onclick="return showPic(this, 'desc{$galleryName}', 'placeholder{$galleryName}')" onkeypress="return showPic(this, 'desc{$galleryName}', 'placeholder{$galleryName}')" href="{./data[@alias = 'umbracoFile']}" title="{@nodeName}" target="_blank"><xsl:value-of select="position()" /></a>I have tried the following online and package converters and neither seem to work:
http://blackpoint.dk/umbraco-workbench/tools/convert-xml-schema-to-45-.aspx?p=2
http://our.umbraco.org/projects/developer-tools/xsltupdater-for-umbraco
Any help would be greatly apreciated??
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.