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: value of attribute where the name of the attribute is b eing passe d in as param


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@emptoris.com

======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
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


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