|
Subject: Re: [xsl] accessing xml elements from current and external file From: "Murray McDonald" <m.mcdonald@xxxxxxxxx> Date: Thu, 4 Aug 2011 08:42:11 -0400 |
Hi Mansour,
It's a problem of context -- you need to put a "pointer" to "/s:root" into a
varible and then access it that way:
<xsl:variable name="docroot" select="/s:root"/>
Here is some code that explains what I am doing:
<xsl:for-each
select="document('configuration.xml')/d:config/d:options">
<option>
<xsl:attribute name="label" >
<xsl:choose>
<xsl:when test="$docroot/s:element[ s:id=1 ]= ." >
<xsl:value-of select="'true'" />
</xsl:when>
</xsl:choose>
</xsl:attribute>
</option>
</xsl:for-each>
Murray
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| AW: [xsl] accessing xml elements fr, Szabo, Patrick \(LNG | Thread | Re: [xsl] accessing xml elements fr, Mansour Al Akeel |
| AW: [xsl] accessing xml elements fr, Szabo, Patrick \(LNG | Date | Re: [xsl] accessing xml elements fr, Mansour Al Akeel |
| Month |