homepage Welcome to WebmasterWorld Guest from 54.211.201.65
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
Show template from Hyperlink
ryrocks




msg:3833386
 7:28 pm on Jan 23, 2009 (gmt 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

 

httpwebwitch




msg:3834463
 3:04 am on Jan 26, 2009 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved