Very simple Xlink question

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

    #1

    Very simple Xlink question

    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>Clic k 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="sim ple"
    xmlns:xlink="ht tp://www.w3.org/1999/xlink"
    xlink:href="htt p://www.somelocatio n.org/">Click here</ABC> for blah
    blah</content>
    </newspage>

    But when I reference this element in my xsl document using:
    <xsl:value-of select="newspag e/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!
Working...