[xsl] Specifying element associated with attribute

Subject: [xsl] Specifying element associated with attribute
From: Paul Caton <paul@xxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Jan 2001 16:15:32 -0500 (EST)
When you have a template that matches element nodes, it's easy to
specify choices based on particular attributes: but how do you do it
the other way around? That is, you have a template for an attribute
and you want to specify a choice based on the name of the element in
which the attribute occurs (ie. test="IF THE NAME OF YOUR ASSOCIATED
ELEMENT IS 'FOO'"). I've tried numerous permutations involving name()
and node(), but nothing has worked so far. Please, what's the magic


Paul Caton
Electronic Publications Editor
Women Writers Project

 e-mail: paul@xxxxxxxxxxxxxxxxxx
    tel: (401) 863-3619
address: Box 1841, Brown University, Providence RI 02912


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

Current Thread