![]() |
|
|
|||||||
![]() |
XML - Following XSLT Logic not working |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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> <XSL <XSL:variable name="dummy1" select="'$'"/> </XSL:variable> <XSL </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 sanket002 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Start Up Help - Password/keys/mouse not working | cwaddell27 | General Help Related Topics | 0 | 09-10-2008 05:32 PM |
| 2007/11/29 Boris 7 new programs, Logic Studio 8 for Mac, MicrosoftVisual Studio 2008 Professional Edition, Microsoft Windows Vista UltimateNov-2007.Win32/64, other new programs | ola@mail.gr | DVD Video | 0 | 11-29-2007 06:15 AM |
| (rumor) Toshiba Working With Microsoft On New Entertainment Xbox (360) with built-in HD-DVD | AirRaid | DVD Video | 6 | 10-21-2007 02:19 AM |
| DVD not working w/ 13 yr old TV | Michael T. | DVD Video | 13 | 10-25-2006 05:52 PM |
| Working in IT? | Paul Kersey | A+ Certification | 6 | 07-06-2004 03:10 AM |