Forum Moderators: open

Message Too Old, No Replies

Show template from Hyperlink

         

ryrocks

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

10+ Year Member



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

httpwebwitch

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

WebmasterWorld Senior Member 10+ Year Member



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.