Re: [xsl] Cannot Access Attribute with colon

Subject: Re: [xsl] Cannot Access Attribute with colon
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 16 Oct 2002 16:30:09 +0100
   <xsl:when test="./link/@show='new'"> as opposed to xlink:@show

   Thanks again for all your help.

xlink:@show is a syntax error. What you want is @xlink:show ie the
attribute with name xlink:show.

What you have now is testing something completely different: whether the
element link (in no namespace) has an attribute show (also in no name

ie you are testing for <link show='new'> rather than <foo xlink:show='new'>

This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

Current Thread