Jump to content

How to set the custom data icon for collapsible list using xslt?

Recommended Posts

Hi Folks,


I need a help to set the custom data-icon for a collapsible list with dynamically generated content.


This is my XSLT code:

<div data-role="collapsible">     <h3>             <xsl:value-of select="ACC-TITLE"/>      </h3></div>

And The output what i am getting is as follows:

<div data-role="collapsible" data-icon="grid" class="ui-collapsible ui-collapsible-inset ui-collapsible-themed-content ui-collapsible-collapsed ui-first-child">		<h3 class="ui-collapsible-heading ui-collapsible-heading-collapsed">		<a class="ui-collapsible-heading-toggle ui-btn ui-btn-icon-left ui-btn-up-c" href="#" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="span" data-icon="plus" data-iconpos="left" data-theme="c">			<span class="ui-btn-inner">				<span class="ui-btn-text">Banana Split					<span class="ui-collapsible-heading-status"> click to expand contents</span>				</span>				<span class="ui-icon ui-icon-plus ui-icon-shadow"> </span>			</span>		</a>	</h3></div>

Now What I need is to set the data-icon to my custom data-icon instead of plus.


do you have any idea.






Abu Isaac

Edited by abuisaacm
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...