Subject: Re: [xsl] Cannot Access Attribute with colon From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Wed, 16 Oct 2002 15:10:25 +0100 |
Hi Karen, > I need to access the values of the xlink:show and xlink:href > attributes, unfortunately using '@xlink:show' does not work, (ie > <xsl:value-of select="@xlink:show"/>) it doesnt seem to like the > colon ' :' My guess would be that you haven't declared the 'xlink' prefix within your stylesheet. A name like xlink:show is a qualified name, with a prefix ('xlink') and a local part ('show'). In order to resolve the qualified name, the XSLT processor needs to be able to tell what namespace the prefix 'xlink' is referring to, so it needs to have a namespace declaration in scope. Try adding a namespace declaration for the 'xlink' prefix to the <xsl:stylesheet> element, as follows: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink"> ... </xsl:stylesheet> and the processor should stop complaining about the ':'. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Cannot Access Attribute with , Clifford, Karen | Thread | RE: [xsl] Cannot Access Attribute w, Yates, Danny (ANTS) |
Re: [xsl] emulating tabulations in , Mike Ferrando | Date | RE: [xsl] Cannot Access Attribute w, Yates, Danny (ANTS) |
Month |