[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Calling templates based on node contents
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@xxxxxxxxxxxxxxxx] Sent: 18 August 2004 18:03 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: 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@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 ====================================================================== 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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|