Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Image with Link
maverick83
Hi,
We want to display an image as a link within a component ,but the compilation of component is failing ,i understand this is actually an XSLT issue ,so i am just confirming if any one can help before posting on core XSLT forums:-
[php]
[/php]
[php]
[/php]
basically we want to use xsl:if or xml:chose to check if the value is filled in "D03",only then the link
tag should come?,
I am new to XSLT ,so bit of confusion,m searching on my own also
Luking forward for a favorable response from experts ,
Thanks in advancce
Regards,
Mav
Find more posts tagged with
Comments
Bowker
Try something like this:
[PHP]
[/PHP]
This is another solution that may work. I think an anchor tag without an href doesn't do much. My question is if the xsl:attribute tag can be inside an xsl:if....give it a try and let us know
[PHP]
[/PHP]
BTW - this may be a little easier to read/code/... but some purists may not like it:
[PHP]
[/PHP]
maverick83
Hi,
Thanks a ton,both the 1 and 2 nd solution worked,
the third one gave a compilation error with "ending tag required for attribute,"
thnks for ur help
closing the thread
Regards,
Mav