>> Quickie question about hyperlinks in XML

Discussion in 'XML' started by Gene Ellis, Aug 25, 2004.

  1. Gene Ellis

    Gene Ellis Guest

    Very simple question. If I have the XML file below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="newspage.xsl"?>
    <newspage>
    <content>Click here for blah blah</content>
    </newspage>
    How can I use XLink to make an HTML hyperlink out of the "click here"
    text?
    I have tried this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="newspage.xsl"?>
    <newspage>
    <content><ABC xlink:type="simple"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:href="http://www.somelocation.org/">Click here</ABC> for blah
    blah</content>
    </newspage>
    But when I reference this element in my xsl document using:
    <xsl:value-of select="newspage/content" /> The word appears without a
    link. Is there a step I am forgetting? I am kinda new to XML. Thank
    you very much for your suggesstions!
    Gene Ellis, Aug 25, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Craig G

    Javascript Quickie

    Craig G, Jan 25, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    395
    Craig G
    Jan 25, 2005
  2. Roy

    Quickie: Printing out code?

    Roy, Oct 18, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    404
  3. Roy
    Replies:
    1
    Views:
    582
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jan 26, 2006
  4. bartek
    Replies:
    3
    Views:
    649
    Victor Bazarov
    Mar 7, 2004
  5. Skip Montanaro

    Quickie mail.python.org status

    Skip Montanaro, Sep 3, 2003, in forum: Python
    Replies:
    3
    Views:
    358
Loading...

Share This Page