[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Specifying element associated with attribute

Subject: RE: Specifying element associated with attribute
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Tue, 2 Jan 2001 14:15:55 -0800
RE:  Specifying element associated with attribute
@*[parent::FOO]

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Paul Caton
Sent: Tuesday, January 02, 2001 1:16 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Specifying element associated with attribute


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
expression?

Paul.

-- 
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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.