[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Add namespace to element name itself

Subject: Re: Add namespace to element name itself
From: "Vasu Chakkera" <vasucv@xxxxxxxxx>
Date: Tue, 18 Nov 2008 12:23:31 +0000
Re:  Add namespace to element name itself
> Thanks. But each and every element (output) contains "xmlns:ce='uri'".
>
It wont , unless you misused Mike's suggestions :)
if you do

   <xsl:template match="pii" priority="3">
               <xsl:element name="ce:{local-name()}" namespace="uri">
                       <xsl:apply-templates select="@*|node()" />
               </xsl:element>
       </xsl:template>

will produce
<item-info>
	<jid>YFMIC</jid>
	<aid>1120</aid>
	<ce:pii xmlns:ce="uri">S0740-0020(08)00080-4</ce:pii>
	<doi>10.1016/j.fm.2008.04.010</doi>
	<copyright type="unknown" year="2008"></copyright>
</item-info>


Unless this is not what you want...

Vasu Chakkera

On Tue, Nov 18, 2008 at 12:14 PM, V.Ramkumar
<v.ramkumar@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>> Michael Kay told
>> <xsl:element name="prefix:{local-name()}" namespace="uri">
>> where prefix and uri are your desired namespace prefix and namespace URI
>> respectively.
>
> Dear Michael,
>
> Thanks. But each and every element (output) contains "xmlns:ce='uri'".
>
> I don't want this, how to avoid it.
>
> Regards,
> Ramkumar
>
>



-- 
Vasu Chakkera
Numerical Algorithms Group Ltd.
Oxford
www.vasucv.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.