Extracting data for anchor titles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Porthos

    Extracting data for anchor titles

    Here's a good one. I want mouseover text to pop up for anchor text. I
    need to extract the mouseover text from one attribute in the XML
    document and the anchor text from a second attribute. I tried the line
    below, but it treats $name as litteral text and it won't let me get
    away with using: title=@author. How can I specify the title attribute
    to achieve my desired result?
    <a title="@author" ><xsl:value-of select="@book"/></a>


    -James

  • Joris Gillis

    #2
    Re: Extracting data for anchor titles

    Hi,
    [color=blue]
    > <a title="@author" ><xsl:value-of select="@book"/></a>[/color]

    Try using
    <a title="{@author }"><xsl:valu e-of select="@book"/></a>

    regards,
    --
    Joris Gillis (http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
    Spread the wiki (http://www.wikipedia.org)

    Comment

    • Porthos

      #3
      Re: Extracting data for anchor titles

      No dice. It just treated the ( )s as litterals too.

      Comment

      • Joris Gillis

        #4
        Re: Extracting data for anchor titles

        > No dice. It just treated the ( )s as litterals too.[color=blue]
        >[/color]
        I should work (with {curly} brackets), or I didn't understand the question. What did you mean with $name?

        --
        Joris Gillis (http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
        Spread the wiki (http://www.wikipedia.org)

        Comment

        • Porthos

          #5
          Re: Extracting data for anchor titles

          Ahh! You are correct. I used parenthases (sp?), not curley braces,
          the first time. Thanks for your help. -James

          Comment

          Working...