[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating Hyperlinks using xlink
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|