This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using xsl-attributes for apply-template select



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]