xsl-list
[Top] [All Lists]

Re: [xsl] Select name of XSD targetNamespace attribute

2014-03-29 18:40:23
That's unbelievable that MS hasn't picked up on XSLT 2.0 yet.

Anyway, your xpath selector works now! Much appreciated!

On Sat, Mar 29, 2014 at 10:44 PM, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--