Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Very simple Xlink question

Reply
Thread Tools

Very simple Xlink question

 
 
Gene Ellis
Guest
Posts: n/a
 
      08-19-2004
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"
xmlnslink="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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help running a very very very simple code olivier.melcher Java 8 05-12-2008 07:51 PM
CGI.PM Very very simple question AMT2K5 Perl Misc 3 12-02-2005 05:18 PM
Very very very basic question Peter C Programming 14 02-14-2005 09:46 AM
Quick Book file access very very very slow Thomas Reed Computer Support 7 04-09-2004 08:09 PM
very Very VERY dumb Question About The new Set( ) 's Raymond Arthur St. Marie II of III Python 4 07-27-2003 12:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57