Re: using xsl-attributes for apply-template select

Subject: Re: using xsl-attributes for apply-template select
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 2 Oct 2000 17:13:55 GMT
select="/docstructure/define[@id='{@defined}']"/>

This tests the id attribute against the string '{@defined}'

but you want to test against the defined attribute of the current node
which is
select="/docstructure/define[@id=current()/@defined]"/>

You _never_ use { } in an xpath expression.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread