[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Namespaces on attributes


Subject: Re: [xsl] Namespaces on attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 29 Feb 2012 16:59:38 +0000

On 29/02/2012 16:45, Wendell Piez wrote:
xpath-default-namespace="http://www.w3.org/2001/XMLSchema-instance"/>

that has the same meaning as "default namespace declaration" xmlns="...." that is, it affects elements but not attributes.


Mostly that's what you want, if you have some documents using no namespace
<html>....<p id="x">...
and some xhtml
<html xmlns="http...">....<p id="x">...
you can convert a stylesheet to work with the second document just by adding xpath-default-namespace="http://...." in both cases @id is in no namespace and selects the no-namespace id attribute.


David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________



Current Thread