Re: [xsl] Select name of XSD targetNamespace attribute

Subject: Re: [xsl] Select name of XSD targetNamespace attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 29 Mar 2014 21:44:03 +0000
On 29/03/2014 20:38, Philipp Kursawe wrote:
  And I am not sure what version they use in
WinRT Windows.Data.Xml.Dom

All MS implementations are XSLT/XPath 1.


However you can write it in xslt1 as

<xsl:value-of
select="local-name(namespace::*[.=current()/@targetNamespace])"/>

(which will only give you the first, should the same namespace be declared twice with two different prefixes)

David

Current Thread