Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2009, 06:45 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Thumbs up

That is what I have already posted.Try with the below:
<xsl:variable name="dummy" select="ArrayOfBookMark/BookMark[ShortName='Asp-7041-EndVar1']/Value"/>
<xsl:variable name="dummy1">
<xsl:choose>
<xsl:when test="($dummy!='')">
<xsl:value-of select="$dummy"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$dummy"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="dvalueadded">
<xsl:with-param name="p" select="$dummy1"/>
</xsl:call-template>

</xsl:template>
<xsl:template name="dvalueadded">
<xsl:param name="p"/>
<xsl:value-of select="$p"/>
</xsl:template>
__________________
Rummy
The Following User Says Thank You to mrame For This Useful Post:
sanket002 (October 27th, 2009)
 
Old October 27th, 2009, 07:45 AM
Registered User
 
Join Date: Oct 2009
Posts: 5
Thanks: 7
Thanked 0 Times in 0 Posts
Default Following XSLT Logic not Working

thanks mrame and mhkay..

its working..
some changes were needed i got the solution.
Thanks once again for your valuable response.

Regards,
Sanket.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Valid Javascript to get working in xslt ismailc XSLT 2 January 7th, 2009 05:05 AM
working with existing xml using xslt bv_arvind XSLT 1 March 12th, 2007 01:37 PM
Not able to implement the given logic in my XSLT ashyabhi_hp XSLT 2 January 27th, 2006 07:24 AM
XSLT Looping Logic - Very Urgent ujayaraman XSLT 2 March 3rd, 2005 10:42 AM
Mixing Data access logic and business logic polrtex BOOK: Professional Jakarta Struts 0 December 15th, 2003 07:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.