[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 29/02/2012 16:45, Wendell Piez wrote:
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.
Re: [xsl] Namespaces on attributes
Subject: Re: [xsl] Namespaces on attributes From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 29 Feb 2012 17:15:11 +0000 |
On 29/02/2012 16:45, Wendell Piez wrote:
Hi,It took me a while too.
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.
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.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Namespaces on attributes, David Carlisle | Thread | Re: [xsl] Namespaces on attributes, Wendell Piez |
Re: [xsl] Namespaces on attributes, David Carlisle | Date | Re: [xsl] how to cast a sequence (e, Florent Georges |
Month |
Keywords