Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Following XSLT Logic Not Working

From: Sanket <sanket.chougule@-----.--->
To: NULL
Date: 10/22/2009 10:05:00 PM
I have to check a value of a variable in XSLT, if it is null then i
have to set it to default "$" otherwise same value.
so for that i have written the following XSLT Logic:

<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:otherwise>
        <XSL:variable name="dummy1" select="'$'"/>
       </XSL:variable>
   <XSL:otherwise>
</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 working.

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

please help...


Quick response will be appriciated.

-Sanket
Sanket.chougule@g...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent