Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Following XSLT Logic not working

Reply
Thread Tools

Following XSLT Logic not working

 
 
sanket002 sanket002 is offline
Junior Member
Join Date: Oct 2009
Posts: 1
 
      10-23-2009
I have to check value of a variable in XSLT if it is null then i have to set it to default "$"
so for that i have written following XSLT code:

<XSL:variable name dummy select= "ArrayOfBookMark/BookMark[ShortName='Asp-7041-EndVar1]/Value">
<XSL:choose>
<XSL:when test="($dummy!='')">
<XSL:variable name="dummy1" select="$dummy"/>
</when>
<XSLtherwise>
<XSL:variable name="dummy1" select="'$'"/>
</XSL:variable>
<XSLtherwise>
</XSL:choose>


Here in Dummy i am copying the value comming from follwing XML.it is retriving value correctly in to dummy.
Condition also checking but the value assignment code for new variable "dummy1" is not happening.

<ArrayOfBookMark>
<BookMark>
<ShortName>Asp-7041-EndVar1</ShortName>
<Value>12345</Value>
</BookMark>
</ArrayOfBookMark>

please help...


Quick response will b appriciated.

-Sanket
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/822319ev1'. 'HTTP/1.1 500 Internal Server Error'. chanmm ASP .Net 2 09-07-2010 07:37 AM
Python Logic Map/Logic Flow Chart. (Example Provided) spike Python 8 02-09-2010 12:31 PM
Asynchronous Logic Gates and Analog Logic Gates Jyoti Ballabh Software 3 11-26-2009 06:48 PM
XSLT logic Oleg Konovalov XML 1 05-06-2005 03:42 PM
RE: The Web server reported the following error when attempting to create or open the Web project located at the following URL: <URL> =?Utf-8?B?VHJldm9yIEJlbmVkaWN0IFI=?= ASP .Net 0 06-07-2004 07:36 AM



Advertisments