[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How to take a QName value and make it an attribute?


Subject: Re: [xsl] How to take a QName value and make it an attribute?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 01 Aug 2012 16:58:19 +0100

On 01/08/2012 16:47, Andrew Welch wrote:
Or to reuse the same 'soap' prefix do:

<xsl:attribute name="{$q}"
namespace="{namespace-uri-for-prefix(prefix-from-QName($q), .)}">



or without that pesky variable and trying to get as many consecutive . in an expression as possible

<fault>
<xsl:attribute name="{.}"
namespace="{namespace-uri-for-prefix(prefix-from-QName(resolve-QName(.,.)),.)}">blah</xsl:attribute>
<xsl:value-of select="."/>
</fault>

David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________



Current Thread