Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Value of select text

    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>

  • #2
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    xml

    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"/>

    ?

  • #3
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's pulling info out of an LDAP so the "attribute" field is needed so it knows what ahpolicyhome is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •