[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:variable question

Subject: Re: xsl:variable question
From: omprakash.v@xxxxxxxxxxxxx
Date: Mon, 28 Feb 2005 16:51:07 +0530
xslt variable img
That should be

"<xsl:value-of select=""/>

Omprakash.V




                                                                                                                     
                    omprakash.v@pol                                                                                  
                    aris.co.in             To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                   
                                           cc:     (bcc: omprakash.v/Polaris)                                        
                    02/28/2005             Subject:     Re:  xsl:variable question                              
                    04:45 PM                                                                                         
                    Please respond                                                                                   
                    to xsl-list                                                                                      
                                                                                                                     
                                                                                                                     






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: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






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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.