[xsl] Namespaces on attributes

Subject: [xsl] Namespaces on attributes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 29 Feb 2012 11:45:48 -0500
Hi,

It was recently shown to me that (using a recent Saxon) this template

 <xsl:template match="@schemaLocation"
  xpath-default-namespace="http://www.w3.org/2001/XMLSchema-instance"/>

does not match the @xsi:schemaLocation here:

<ead xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns="urn:isbn:1-931666-22-9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="urn:isbn:1-931666-22-9 http://www.loc.gov/ead/ead.xsd";>


I am at a loss to explain this.

Comments? (Apologies if I'm missing something obvious. And yes, the attribute is being matched with "@*" in the same stylesheet so we know it's being selected.)

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

Current Thread