| Subject: Re: [xsl] Creating Hyperlinks using xlink From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 9 Jul 2003 14:57:05 +0100 | 
You have to remember that you may think that Xlink is special but to
XSLT it's just another collection of attribute names, so
<a href="{xlink:simple/@href}"><xs
would set the href attribute to the value of the expression xlink:simple/@href
which is the value of the href attribute of an xlink:simple  element
of the current node.
Assuming you haven't got an xlink:simple element this will be "".
You don't want the href attribute of an xlink:simple element,
you want the  xlink:href attribute of an element that has an 
xlink:type="simple" attribute
which is <a href="{@xlink:href}"
possibly guarded by an <xsl:if test="@xlink:type='simple'" if you need
that test.
Also you need to use the right xlink namespace (the one in your sample doc,
not the one in your stylesheet)
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Creating Hyperlinks using, David Carlisle | Thread | Re: [xsl] Creating Hyperlinks using, Rudi Starcevic | 
| [xsl] Creating Hyperlinks using xli, Rudi Starcevic | Date | Re: [xsl] Rename attributes and nod, Mukul Gandhi | 
| Month |