Very simple Xlink question

Discussion in 'XML' started by Gene Ellis, Aug 19, 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 19, 2004
    #1
    1. Advertisements

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. John Hoge

    Very, very, easy question

    John Hoge, May 27, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    540
  2. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    724
    Raymond Hettinger
    Jul 27, 2003
  3. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    2,054
    Merrill & Michele
    Oct 19, 2004
  4. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    726
    jacob navia
    Oct 17, 2004
  5. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    816
    Dave Thompson
    Feb 14, 2005
  6. olivier.melcher

    Help running a very very very simple code

    olivier.melcher, May 12, 2008, in forum: Java
    Replies:
    8
    Views:
    2,787
  7. Max Norman
    Replies:
    5
    Views:
    284
  8. AMT2K5

    CGI.PM Very very simple question

    AMT2K5, Dec 1, 2005, in forum: Perl Misc
    Replies:
    3
    Views:
    197
    Brian McCauley
    Dec 2, 2005
Loading...