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

Re: Creating Hyperlinks using xlink

Subject: Re: Creating Hyperlinks using xlink
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 9 Jul 2003 14:57:05 +0100
xlink href
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

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.