Subject: Re: [xsl] Namespaces on attributes From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 29 Feb 2012 12:59:46 -0500 |
It was recently shown to me that (using a recent Saxon) this templateIt took me a while too.
<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.
xpath-default-namespace sets the "default namespace for element and type names". It doesn't affect attribute names. As in XML, unprefixed attribute names are in no namespace, regardless of any default namespace.
Thanks again, Wendell
Michael Kay Saxonica
-- ====================================================================== 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Namespaces on attributes, Michael Kay | Thread | [xsl] Finding triples with same/dis, Michael Müller-Hille |
Re: [xsl] how to cast a sequence (e, Florent Georges | Date | Re: [xsl] faster complicated counti, Alex Muir |
Month |