I don't know how conformant MSXSL and .NET XSLT processing is in comparision to
other processors?
But no errors with match="." here...
-----Original Message-----
From: Wendell Piez [mailto:wapiez(_at_)mulberrytech(_dot_)com]
Sent: 18 August 2004 18:03
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Calling templates based on node contents
At 08:06 AM 8/18/2004, David wrote:
<xsl:template match="."
is _very_ strange construct it matches any node whatsoever, so really
disables the entire template matching process (which is why you were
having difficulties I expect)
It's not even legal, is it? Aren't axes apart from child:: and attribute::
illegal in patterns? "A location path pattern is a location path whose
steps all use only the child or attribute axes" [XSLT 5.2]. With a sort of
quasi-exception made for the '//' operator.
Given that (as surely every XSLT programmer learned in XSLT school) "." is
short for "self::node()", I should think this match would give you an error
in a conformant processor.
Cheers,
Wendell
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)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
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--
This e-mail and any attached files are for the exclusive use of the addressee
and may contain privileged and/or confidential information. If you receive this
e-mail in error you should not disclose the contents to any other person nor
take copies but should delete it and telephone us immediately on +44(0)20 7557
6100.
TEQUILA\ London Limited does not make any warranty as to the accuracy or
completeness of this e-mail and we accept no liability for its content or use.
Any opinions expressed in this e-mail are those of the author and do not
necessarily reflect the opinions of TEQUILA\ London Limited.
TEQUILA\ London Limited operates within the parameters set by the Data
Protection Act 1998 with regard to the use of personal information including
e-mail addresses. We accept no liability for the forwarding of this e-mail to
other parties that may result in unsolicited e-mails being received by those
whose email addresses appear in this e-mail.