RE: [xsl] value of attribute where the name of the attribute is b eing passe d in as param

Subject: RE: [xsl] value of attribute where the name of the attribute is b eing passe d in as param
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2001 12:35:26 +0000
Xiaocun:

You need @*[name()=$attributeName] (or @*[local-name()=$attributeName] if you don't want to worry about namespaces).

Regards,
Wendell

At 04:44 PM 3/20/01, you wrote:
Hi, David:

        Thanks for the suggestions :).
        Sorry the original explanation may not be very clear :(  I knew it
could be confusing, and was trying to explain it the clearest possible way.
Let me give it another try here:
        I want to pass in the name of the attribute into a template
($attributeName).  The template will then print out the value stored for the
attribute (@$attributeName).

Hope this helps to clarify, thanks.

Xiaocun Xu
Emptoris, Inc.
xxu@xxxxxxxxxxxx

====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


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



Current Thread