[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:value-of inside an html tag

Subject: RE: xsl:value-of inside an html tag
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 3 Oct 2002 08:53:46 +0100
kay macdougall
I hate to be severe, but this code is an absolute disaster. Please get
yourself a book abobut XSLT and read a few chapters before you write any
more code. In particular, try to understand the concept that you are
building a result tree containing element and attribute nodes, not a
string of characters. Learn how to use literal result elements and
attribute value templates.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> 
> I'm trying to build a dynamic link by having the href 
> attribute set to <xsl:value-of 
> select="/page/results/prevnext/@prevresult"/> ... so I would 
> have something like <a href="<xsl:value-of 
> select="/page/results/prevnext/@prevresult"/>">Previous</a> 
> ... obviously that's not going to work though.
> 
> The only thing I can get to compile is the following but this 
> actually prints the href to the screen rather than processing it.
> 
> <xsl:variable name="beginhref">&lt;a href="</xsl:variable> 
> <xsl:variable name="endhref">"&gt;</xsl:variable>
> <xsl:variable name="closehref">&lt;/a&gt;</xsl:variable>
> <xsl:value-of select="$beginhref"/><xsl:value-of
> select="/page/results/prevnext/@prevresult"/><xsl:value-of
> select="$endhref"/>Previous<xsl:value-of select="$closehref"/>
> 
> Is there another way to do this that actually resolves the 
> href rather than printing it out?
> 
> Thanks,
> 
> -Matt MacDougall
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.