Re: [xsl] How to match namespaces instead of namespace prefixes ?

Subject: Re: [xsl] How to match namespaces instead of namespace prefixes ?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 27 Oct 2004 10:21:29 +0100
  Now I want to write a XSLT stylesheet which matches a subelem if the prepended
  namespace prefix belongs to the namespace "http://www.foo.com";
  regardless which current namespace prefix is used.
 
  How do I implement this ?

That's how matching in XSLT _always_ works.

Just assign any prefix (say z)  to http://www.foobar.com in your
stylesheet, then use x:subelem in any Xpath or match pattern.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread