|
Subject: Re: [xsl] Select name of XSD targetNamespace attribute From: "Abel Braaksma (Exselt)" <abel@xxxxxxxxxx> Date: Fri, 28 Mar 2014 17:18:53 +0100 |
I must confess, I hardly ever use the namespace axis, and this is a fine
example of its use!
That said, do note that the namespace axis was deprecated as of XPath
2.0, so for the sake of completeness, here is a version without the
namespace axis, using the functions I described in that other mail in
this thread:
<xsl:value-of select="
in-scope-prefixes(.)[
current()/@targetNamespace =
namespace-uri-for-prefix(., current())]"/>
but clearly not as concise as David's version.
Cheers,
Abel Braaksma
Exselt XSLT 3.0 processor
http://exselt.net
On 28-3-2014 16:52, David Carlisle wrote:
> <xsl:template match="xs:schema">
> <xsl:value-of
> select="namespace::*[.=current()/@targetNamespace]/local-name()"/>
> </xsl:template>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Select name of XSD target, David Carlisle | Thread | Re: [xsl] Select name of XSD target, Philipp Kursawe |
| Re: [xsl] Returning item type of va, Michael Kay | Date | Re: [xsl] Things that make you go H, Ihe Onwuka |
| Month |