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

Re: Finding element name of content node

Subject: Re: Finding element name of content node
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 11 Apr 2006 11:10:50 -0400
xpath content

At 10:59 AM 4/11/2006, you wrote:
I can't seem to find the answer to this question anywhere.  Can someone

Yep. (Odd that you can't find the answer.)

How do I find out the name of the current content node?

If I understand what you mean by the "current content node", you want the XPath function "name()" (for the namespace-qualified name) or "local-name()" (the unqualified name). Use either one without an argument and retrieve the name of the context node by default.

The Mulberry XSLT Quick Reference, available for download at http://www.mulberrytech.com/quickref/index.html, lists all the XPath functions and operators (in addition to much else). While it doesn't explain what they are for, it does elucidate their syntax, and usually their names provide good hints (to English speakers anyway :-) as to their semantics. Once you know the name of a function you think might do the job, a search engine gives you all the help you need.

The "horse's mouth" in this case is the W3C spec itself: the XPath 1.0 Recommendation is at http://www.w3.org/TR/xpath).

Good luck,

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

Current Thread


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.
First Name
Last Name
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.