By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,824 Members | 1,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,824 IT Pros & Developers. It's quick & easy.

Very simple Xlink question

P: n/a
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!
Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.