Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
here is my xslt code which i want to check with particular page id but this xslt no generate any output
<xsl:template match="/"> <!-- start writing XSLT --><xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/SEGWThreeTextCol/ImageGallery2"> <xsl:for-each select="umbraco.library:GetXmlNodeById(1214)/*[@isDoc]"> {"url":"<xsl:value-of select="imageGallery2" />","width":"333","height":"249"} <xsl:if test="position() != last()">,</xsl:if> </xsl:for-each> </xsl:for-each></xsl:template>
Hi Shine,
You don't need to do ancestor search.
Try to use such code:
<xsl:template match="/"> <!-- start writing XSLT --> <xsl:for-each select="umbraco.library:GetXmlNodeById(1214)/*[@isDoc]"> {"url":"<xsl:value-of select="imageGallery2" />","width":"333","height":"249"} <xsl:if test="position() != last()">,</xsl:if> </xsl:for-each></xsl:template>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
xslt did not generate any output
here is my xslt code which i want to check with particular page id but this xslt no generate any output
<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/SEGWThreeTextCol/ImageGallery2">
<xsl:for-each select="umbraco.library:GetXmlNodeById(1214)/*[@isDoc]">
{"url":"<xsl:value-of select="imageGallery2" />","width":"333","height":"249"}
<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
Hi Shine,
You don't need to do ancestor search.
Try to use such code:
<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:for-each select="umbraco.library:GetXmlNodeById(1214)/*[@isDoc]">
{"url":"<xsl:value-of select="imageGallery2" />","width":"333","height":"249"}
<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>
</xsl:template>
is working on a reply...