Re: [xsl] xsl:variable question

Subject: Re: [xsl] xsl:variable question
From: omprakash.v@xxxxxxxxxxxxx
Date: Mon, 28 Feb 2005 16:45:20 +0530
Hi,
    What you are doing right now is adding the <img> element to your output
tree. If you need the value of img in your variable, then you need to use

<xsl:value-f select="..."/> construct.


Adding the string representation of your img element shouldn't be too
difficult. But if you need to have a result-tree-fragment (RTF) in your
variable, it helps if they are part of your input document.

You may get someone else's help on how to build your RTF.

Regards,
Omprakash.V



                                                                                                                   
                    "Kai                                                                                           
                    Hackemesser"         To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                   
                    <kaha@xxxxxx>        cc:     (bcc: omprakash.v/Polaris)                                        
                                         Subject:     [xsl] xsl:variable question                                  
                    02/28/2005                                                                                     
                    04:36 PM                                                                                       
                    Please                                                                                         
                    respond to                                                                                     
                    xsl-list                                                                                       
                                                                                                                   
                                                                                                                   




Hello,

I have a construction which looks as following:

<xsl:variable name="tree-structure-new-branch">
    <xsl:choose>
        <xsl:when test="not(position()=last())">
            <img width="16" height="16"
                 alt="Der Zweig geht nachher noch weiter"/>
        </xsl:when>
        <xsl:otherwise>
            <img width="16" height="16" alt="Der Zweig endet hier"/>
        </xsl:otherwise>
   </xsl:choose>
</xsl:variable>

I have traced through this piece of code, it seems to follow my xml tree
well. But the variable I define here is empty after leaving this xsl
structure. Why? What should I change to store that img element in the
variable?

Regards,
Kai






This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

Current Thread