xsl-list
[Top] [All Lists]

Re: How to match namespaces instead of namespace prefixes ?

2004-10-27 02:21:29
  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
________________________________________________________________________


<Prev in Thread] Current Thread [Next in Thread>