Welcome to WebmasterWorld Guest from 54.147.44.13

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Show template from Hyperlink

     
7:28 pm on Jan 23, 2009 (gmt 0)

New User

5+ Year Member

joined:May 21, 2008
posts: 7
votes: 0


Hey everyone,
Using xsql with an xsl stylesheet I'd like to display a template from a hyperlink.
I can get the link to access a website:
<a href="http://www.google.com"><li><xsl:value-of select="DBINFORMATION"/></li></a>

What I really want is the page to show some data from the db. Something like this:

<xsl:template match="THEINFO">
<h2>The info you requested is: <xsl:value-of select="INFO"/></h2>
</xsl:template>

I presume that I need to use an 'apply-template' in the hyperlink? I could be wrong!
Any help would be much appreciated!

Dave

3:04 am on Jan 26, 2009 (gmt 0)

Moderator This Forum from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4059
votes: 0


you have a hyperlink, <a>
by the way, you should probably put the <a> inside the <li>, not the other way around

When you click the link, you want to show data from your database.
So... create a page on your own site that shows the information you want to show, and link to it. Instead of linking to google, link to your own page.