There are a couple of different ways to get at the information that you
require without necessarily pulling it from the tag execution at "run time"
as it were.
Since you're the one setting the tag name, you should know what it's called,
right?
-- Jim R. Wilson (jimbojw)
On 6/6/07, Daniel Barrett <danb(a)vistaprint.com> wrote:
If I write a parser extension for a tag <foobar>, is it possible for the
extension code to obtain the string "foobar", that is, the name of the
tag that invoked it?
I know how to get the tag body (first argument to the parser function)
and the attribute array (2nd argument), but not the tag name itself.
Thanks,
DanB
---------------------
Confidentiality note
The information in this email and any attachment may contain confidential
and proprietary information of VistaPrint and/or its affiliates and may be
privileged or otherwise protected from disclosure. If you are not the
intended recipient, you are hereby notified that any review, reliance or
distribution by others or forwarding without express permission is strictly
prohibited and may cause liability. In case you have received this message
due to an error in transmission, please notify the sender immediately and
delete this email and any attachment from your system.
---------------------
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l