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

Re: accessing xml elements from current and external f

Subject: Re: accessing xml elements from current and external file
From: Michel Hendriksen <michel.hendriksen@xxxxx>
Date: Thu, 4 Aug 2011 14:35:22 +0200
Re:  accessing xml elements from current and external f
You are switching context to the other document. Try getting those
options in a variable first.


On Thu, Aug 4, 2011 at 2:32 PM, Mansour Al Akeel
<mansour.alakeel@xxxxxxxxx> wrote:
> Hello all,
> I have a separate configuration file for some configuration. I am trying to
access elements from this file, and compare them to elements in the file being
processed. However, when I use for-each and select elements from configuration
file, I can not access elements in the file being processed at the same time.
> Here is some code that explains what I am doing:
>            <xsl:for-each
>            <option>
>                <xsl:attribute name="label" >
>                <xsl:choose>
>                    <xsl:when test="/s:root/s:element[ s:id=1 ]= ." >
>                    <xsl:value-of select="'true'" />
>                    </xsl:when>
>                </xsl:choose>
>                </xsl:attribute>
>            </option>
>            </xsl:for-each>
> If there is something not clear, please let me know.
> Thank you.

Current Thread


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.
First Name
Last Name
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.