This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: using xsl-attributes for apply-template select
- To: xsl-list at mulberrytech dot com
- Subject: Re: using xsl-attributes for apply-template select
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 2 Oct 2000 17:13:55 GMT
- References: <19085.970500997@www15.gmx.net>
- Reply-To: xsl-list at mulberrytech dot com
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