Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
How to populate Tree using XSL?
posted

Hi,

I am using XSL to populate XML data in a Tree. It works well, however, the documentation seems to be limited and I can't figure out how to set the attributes of the Node. For instance, in the below code snippet, I am trying to set the attribute "ImageUrl" so that the tree will have custom icons, but it isn't working. Where can I find all the different attributes for the databinding Node.

Thanks,

Girish

<xsl:stylesheet  ...

<xsl:template match="/">

  <IGTree>

     <Nodes>        <xsl:apply-templates select="Message" />

    </Nodes>

  </IGTree>

</xsl:template>

<xsl:template match="Message">

   <Node ImageUrl="Images/File.gif">

      <Text><xsl:value-of select="@Name"/></Text>

   </Node>

</xsl:template>

 

</xsl:stylesheet>

  • 7694
    posted

    Hello,
    Please take a look at the link below


    http://samples.infragistics.com/2008.3/WebFeatureBrowser/contents.aspx?showCode=True&t=WebTree/treexsltransform/TreeXslTransform.aspx~srcview.aspx?path=../webfeaturebrowservb/WebTree/treexsltransform/TreeXslTransform.src~srcview.aspx?path=WebTree/treexsltransform/TreeXslTransform.src


    Hope this help.
    Thanks.