Re: [xsl] xsl:variable question

Subject: Re: [xsl] xsl:variable question
From: omprakash.v@xxxxxxxxxxxxx
Date: Mon, 28 Feb 2005 16:45:20 +0530
    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.


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


I have a construction which looks as following:

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

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


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

Current Thread