...

Value of select text

thinguy
02-02-2003, 11:11 PM
The code below pulls a string from my datasource is linked to my image src but also shows up as a text line right before it How can it the variable to not show?

Thanks



<xsl:variable name="GreenEggs" select="detail/object/attribute[name='AHPOLICYHOME']/value"/>
<xsl:value-of select="$GreenEggs"/>
<a title="{$GreenEggs}" href="{$GreenEggs}">
<img src="{find_16.gif"/>
</a>
<xsl:variable name="GreenHam" select="detail/object/attribute[name='AHPOLICYLINK']/value"/>
<xsl:value-of select="$GreenHam"/>
<a title="{$GreenHam}" target="_blank" href="{$GreenHam}">
<img src="{find_16.gif"/>
</a>

angiras
02-03-2003, 04:58 AM
it will be good to see the part of your xml file

for

and is it

<xsl:variable name="GreenEggs" select="detail/object/attribute[@name='AHPOLICYHOME']/value"/>

or

<xsl:variable name="GreenEggs" select="detail/object[@name='AHPOLICYHOME']/value"/>

?

thinguy
02-03-2003, 04:16 PM
It's pulling info out of an LDAP so the "attribute" field is needed so it knows what ahpolicyhome is.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum